/* ===== Premium Base ===== */
:root{
  --bg: #f6fffe;
  --fg: #072827;
  --muted: #506c6a;
  --brand: #0fa89a;
  --brand-2: #84e6de;
  --card: #ffffff;
  --ring: rgba(15,168,154,0.35);
  --shadow: 0 18px 60px rgba(15,168,154,0.16);
  --grid: rgba(8,60,58,0.06);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC","PingFang SC","Noto Sans CJK SC","Noto Sans SC","Microsoft YaHei","Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1200px 600px at 70% -10%, #e6fffb, transparent 70%),
    linear-gradient(180deg, #f9fffe 0%, #f3fffe 100%);
  line-height:1.65;
  overflow-x: hidden;
}

/* Subtle grid overlay for premium feel */
body::before{
  content:"";
  position:fixed; inset:0; pointer-events:none; z-index:-1;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px;
  mask-image: radial-gradient(60% 60% at 50% 40%, rgba(0,0,0,.6), transparent 80%);
}

/* Scroll progress */
.top-progress{ position:fixed; left:0; right:0; top:0; height:3px; z-index:60; background: transparent; }
.top-progress .bar{ display:block; height:100%; width:0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); box-shadow:0 0 12px rgba(132,230,222,.6); }

.container{ width:min(1180px, 92%); margin:0 auto; }
.nowrap{ white-space:nowrap; }

.skip-link{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus{ left:8px; top:8px; width:auto; height:auto; padding:8px 12px; background:#fff; border-radius:10px; box-shadow: var(--shadow); }

/* Header */
.site-header{
  position:sticky; top:0; z-index:55; backdrop-filter: saturate(1.2) blur(8px);
  background: rgba(246,255,254,0.75); border-bottom:1px solid #e6f5f4;
}
.nav-wrap{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; color:var(--fg); text-decoration:none; letter-spacing:.2px; }
.nav a{ color:var(--fg); text-decoration:none; margin-left:20px; padding:8px 10px; border-radius:12px; }
.nav a:hover{ background:#ebfffb; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 18px; border-radius:16px; border:2px solid transparent; font-weight:800;
  text-decoration:none; cursor:pointer; transition:.2s transform ease, .2s box-shadow ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:focus{ outline:none; box-shadow: 0 0 0 4px var(--ring); }
.btn-primary{ background: var(--brand); color:#032120; box-shadow: var(--shadow); }
.btn-ghost{ background: transparent; border-color:#bfeee9; color: var(--fg); }
.btn-sm{ padding:10px 14px; border-radius:12px; }

/* Sections */
.section{ padding:100px 0; position:relative; }
.section.alt{ background: linear-gradient(180deg, rgba(255,255,255,0) 0, #f3fffe 100%); }
.section-title{ font-size: clamp(26px, 3.4vw, 40px); margin:0 0 24px; }

.hero{ padding-top:120px; padding-bottom:120px; position:relative; overflow:clip; }
.hero-bg{
  position:absolute; inset:-10% -20% auto -20%; height:70%;
  background: radial-gradient(60% 60% at 70% 30%, #d9fffb 0%, rgba(217,255,251,0) 70%);
  filter: blur(30px);
}
.hero-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap:34px; align-items:center; }
.hero-copy .headline{ font-size: clamp(36px, 5.2vw, 72px); line-height:1.06; margin:0 0 14px; letter-spacing:.2px; }
.hero-copy .accent{ background: linear-gradient(90deg, #0fa89a, #6fe0d8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subhead{ font-size: clamp(16px, 2vw, 22px); color: var(--muted); margin:0 0 22px; }
.cta-row{ display:flex; gap:12px; flex-wrap:wrap; }
.hero-bullets{ display:flex; gap:12px; flex-wrap:wrap; padding:0; margin:18px 0 0; list-style:none; color:#2b5c58; }
.hero-bullets li{ background:#e9fffb; padding:8px 12px; border-radius:12px; }

/* Cards and grids */
.card{
  background: var(--card); border:1px solid #e8f7f5; border-radius:22px; padding:22px; box-shadow: var(--shadow);
}
.glass{
  background: rgba(255,255,255,0.6);
  border:1px solid rgba(165,235,229,0.7);
  backdrop-filter: blur(12px) saturate(1.15);
}
.mini-stats{ display:flex; gap:22px; margin-top:14px; flex-wrap:wrap; }
.mini-stats .num{ display:block; font-size:22px; font-weight:900; }

.features-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:18px;
}
@media(max-width:1000px){ .features-grid{ grid-template-columns: repeat(2, 1fr); } }
@media(max-width:640px){ .hero-grid{ grid-template-columns: 1fr; } .features-grid{ grid-template-columns: 1fr; } }

.feature h3{ margin:12px 0 8px; }
.icon{ width:42px; height:42px; border-radius:12px; background: linear-gradient(135deg, #bff3ee, #8fe5dd); border:1px solid #a9ebe5; box-shadow: var(--shadow); }
.i-ti::after, .i-sense::after, .i-route::after, .i-secure::after{
  content:""; display:block; width:100%; height:100%; mask-size: 60% 60%; mask-repeat:no-repeat; mask-position:center; background:#0b3a38;
}
.i-ti::after{ mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 51%); }
.i-sense::after{ mask-image: linear-gradient(0deg, transparent 40%, black 40%, black 60%, transparent 60%); }
.i-route::after{ mask-image: linear-gradient(45deg, transparent 45%, black 45%, black 55%, transparent 55%); }
.i-secure::after{ mask-image: radial-gradient(circle at 50% 60%, black 35%, transparent 36%); }

.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap:28px; align-items:start; }
@media(max-width:900px){ .two-col{ grid-template-columns: 1fr; } }

.how-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
@media(max-width:1000px){ .how-grid{ grid-template-columns: 1fr; } }
.step{ background:#ffffff; border:1px solid #e8f7f5; border-radius:20px; padding:22px; box-shadow: var(--shadow); }
.badge{ display:inline-grid; place-items:center; width:34px; height:34px; border-radius:12px; background:linear-gradient(135deg,#bff3ee,#8fe5dd); border:1px solid #a9ebe5; font-weight:900; color:#083634; }

.checklist{ padding-left:18px; }
.feature-list{ padding-left:18px; }

.roadmap{ position:relative; margin-left:10px; border-left:2px dashed #bfeee9; padding-left:16px; }
.phase{ display:flex; gap:12px; padding:16px 0; }
.phase .dot{ width:12px; height:12px; border-radius:50%; background:var(--brand); margin-left:-23px; margin-top:8px; box-shadow:0 0 0 4px rgba(15,168,154,0.15); }

/* Footer */
.site-footer{ padding:40px 0 70px; color:#527673; }
.foot-grid{ display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; align-items:start; }
.foot-links{ display:flex; gap:14px; flex-wrap:wrap; }
.brandline{ display:flex; align-items:center; gap:8px; font-weight:800; }
.legal{ margin-top:12px; font-size:13px; opacity:0.9; }

/* Companion */
.companion{
  position: fixed; left: 0; top: 0;
  width: clamp(240px, 26vw, 360px); height: auto;
  pointer-events:none; z-index: 50;
  filter: drop-shadow(0 18px 60px rgba(16,179,163,0.28));
}
.companion.idle{ animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe{
  0%,100%{ transform: translate3d(var(--tx,0), var(--ty,0), 0) scale(1); }
  50%{ transform: translate3d(var(--tx,0), var(--ty,0), 0) scale(1.018); }
}

/* Motion toggle */
.motion-toggle{
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  padding:10px 14px; border-radius:14px; font-weight:800; border:1px solid #cdeeea; background:#ffffff;
  box-shadow: var(--shadow); color: var(--fg); cursor:pointer;
}

/* Reveal animation */
[data-reveal]{
  opacity:0; transform: translateY(18px); transition: .5s opacity cubic-bezier(.2,.8,.1,1), .6s transform cubic-bezier(.2,.8,.1,1);
}
[data-reveal].in{ opacity:1; transform: none; }
