:root {
  --navy: #071120; --navy2: #0c1d36; --navy3: #132a4a;
  --teal: #0891b2; --teal-b: #06b6d4; --teal-l: #ecfeff;
  --amber: #f59e0b; --amber-l: #fffbeb; --bg: #f4f7fb;
  --card: #ffffff; --line: #dce5f0; --text: #0f172a; --mute: #475569;
  --r: 14px; --r-lg: 20px; --max: 1180px;
  --sh-sm: 0 2px 8px rgba(7, 17, 32, 0.04), 0 1px 2px rgba(7, 17, 32, 0.06);
  --sh-md: 0 12px 32px -4px rgba(7, 17, 32, 0.08), 0 4px 12px -2px rgba(7, 17, 32, 0.04);
  --sh-lg: 0 24px 56px -12px rgba(7, 17, 32, 0.22), 0 0 1px rgba(6, 182, 212, 0.3);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; color: var(--text); background: #ffffff; overflow-x: hidden;
  font: 16px/1.72 -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums; animation: pageIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pageIn { from { opacity: 0.01; transform: translateY(4px); } to { opacity: 1; transform: none; } }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #0e7490; text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 0.55em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); } h2 { font-size: clamp(1.45rem, 2.5vw, 1.95rem); } h3 { font-size: 1.18rem; } h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; } ul, ol { margin: 0 0 1em; padding-left: 1.35em; } li { margin-bottom: 0.4em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; width: 100%; }

/* Header & Glass Nav */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 17, 32, 0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: height 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; transition: height 0.25s ease; }
.site-header.scrolled { background: rgba(7, 17, 32, 0.95); box-shadow: 0 10px 30px rgba(2, 8, 20, 0.35); }
.site-header.scrolled .wrap { height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.28rem; color: #fff; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; color: #fff; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand-sub { font-size: 0.7rem; font-weight: 600; color: #38bdf8; background: rgba(6, 182, 212, 0.14); border: 1px solid rgba(6, 182, 212, 0.3); padding: 1px 7px; border-radius: 99px; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #cbd5e1; padding: 7px 11px; border-radius: 8px; font-size: 0.91rem; font-weight: 500; white-space: nowrap; transition: all 0.2s ease; }
.nav a:hover, .nav a.active { background: rgba(6, 182, 212, 0.16); color: #fff; text-decoration: none; }
.nav a.active { box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35); color: #38bdf8; }
.nav .lang { border: 1px solid rgba(255, 255, 255, 0.2); margin-left: 8px; font-weight: 600; color: #f8fafc; }
.nav .lang:hover { border-color: #38bdf8; background: rgba(56, 189, 248, 0.15); }
.menu-btn { display: none; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; padding: 6px 12px; font-size: 0.92rem; color: #fff; cursor: pointer; }

/* Buttons with Magnetic & Ripple Effect */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  color: #fff; font-weight: 600; font-size: 0.96rem;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 6px 20px -4px rgba(6, 182, 212, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer; transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
}
.btn:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 26px -4px rgba(6, 182, 212, 0.6); }
.btn.ghost { background: rgba(255, 255, 255, 0.06); color: #f1f5f9; border-color: rgba(255, 255, 255, 0.24); box-shadow: none; backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.45); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); animation: rpl 0.6s linear; background: rgba(255, 255, 255, 0.35); pointer-events: none; }
@keyframes rpl { to { transform: scale(4); opacity: 0; } }

/* Hero & Page Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 18% 20%, rgba(6, 182, 212, 0.22), transparent 42%),
              radial-gradient(circle at 84% 70%, rgba(245, 158, 11, 0.16), transparent 45%),
              linear-gradient(145deg, #050c18 0%, #0a192f 55%, #0d2542 100%);
  color: #f8fafc; padding: 76px 0 72px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px; pointer-events: none;
}
.hero-bg-img {
  position: absolute; right: 0; top: 0; width: 62%; height: 100%;
  object-fit: cover; opacity: 0.22; mix-blend-mode: screen; pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.hero-grid > *, .video-grid > *, .grid > *, .mod-cols > * { min-width: 0; }
.hero h1 { color: #fff; font-size: clamp(2.05rem, 3.8vw, 3.05rem); line-height: 1.18; margin-bottom: 0.55em; }
.text-grad {
  background: linear-gradient(95deg, #38bdf8 0%, #67e8f9 50%, #fbbf24 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: #cbd5e1; font-size: 1.08rem; max-width: 640px; }
.hero .tag, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6, 182, 212, 0.14); border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc; padding: 4px 14px; border-radius: 99px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 18px;
}
.hero .tag::before, .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-pill { font-size: 0.82rem; color: #cbd5e1; background: rgba(15, 23, 42, 0.65); border: 1px solid rgba(148, 163, 184, 0.22); padding: 5px 12px; border-radius: 8px; }

/* Interactive ERP Dashboard Mockup */
.dash-mock {
  position: relative;
  background: rgba(11, 24, 45, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px; padding: 18px;
  box-shadow: var(--sh-lg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.dash-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.dash-dots span:nth-child(1) { background: #ef4444; }
.dash-dots span:nth-child(2) { background: #f59e0b; }
.dash-dots span:nth-child(3) { background: #10b981; }
.dash-badge { font-size: 0.75rem; color: #fbbf24; background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.35); padding: 2px 10px; border-radius: 99px; font-weight: 600; }
.dash-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.dash-kpi { background: rgba(15, 32, 58, 0.85); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 12px 14px; }
.dash-kpi small { display: flex; justify-content: space-between; color: #94a3b8; font-size: 0.76rem; }
.dash-kpi strong { display: block; font-size: 1.25rem; color: #fff; margin: 4px 0 2px; }
.dash-kpi em { font-style: normal; font-size: 0.74rem; color: #38bdf8; }
.dash-chart { background: rgba(7, 17, 32, 0.75); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 12px; }
.dash-chart-head { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; font-size: 0.78rem; color: #94a3b8; margin-bottom: 6px; }
.svg-line-anim { stroke-dasharray: 520; stroke-dashoffset: 520; animation: drawLine 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Page Hero */
.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.18), transparent 45%),
              linear-gradient(135deg, #071120 0%, #0d213d 100%);
  color: #fff; padding: 52px 0 44px; border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.35rem); margin-bottom: 0.35em; }
.page-hero p { color: #cbd5e1; max-width: 840px; margin: 0; font-size: 1.04rem; }

/* Sections & Cards */
section.s { padding: 64px 0; position: relative; }
section.s.alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 780px; margin-bottom: 36px; }
.sec-head p { color: var(--mute); font-size: 1.03rem; }
.sec-tag { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); background: var(--teal-l); border: 1px solid #bae6fd; padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px;
  box-shadow: var(--sh-sm);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(6, 182, 212, 0.08), transparent 60%);
  opacity: 0; transition: opacity 0.25s ease;
}
.card:hover { border-color: #7dd3fc; box-shadow: var(--sh-md); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--mute); margin-bottom: 0.65em; font-size: 0.95rem; }
a.card { display: flex; flex-direction: column; color: inherit; }
a.card:hover { text-decoration: none; }
a.card .more { margin-top: auto; padding-top: 8px; color: var(--teal); font-weight: 600; font-size: 0.91rem; }
.ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, #ecfeff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.ico svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Feature Visual Grid & Video Showcase */
.feat-media { border-radius: 12px; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); background: var(--navy); aspect-ratio: 1200 / 896; }
.feat-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.card:hover .feat-media img { transform: scale(1.03); }
.video-box {
  background: linear-gradient(145deg, #071120 0%, #0e2240 100%);
  border: 1px solid rgba(56, 189, 248, 0.3); border-radius: var(--r-lg);
  padding: 28px; color: #f8fafc; box-shadow: var(--sh-lg);
}
.video-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 28px; align-items: center; }
.video-box h2, .video-box h3 { color: #fff; }
.video-box p { color: #cbd5e1; }
.video-frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(56, 189, 248, 0.35); background: #050c18; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.video-frame video { width: 100%; height: auto; display: block; }
.video-caption { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; align-items: center; padding: 8px 14px; background: rgba(15, 23, 42, 0.9); font-size: 0.78rem; color: #94a3b8; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* Steps, Tables, Notices & Badges */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 16px; counter-reset: st; padding: 0; list-style: none; }
.steps li { counter-increment: st; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 0; box-shadow: var(--sh-sm); position: relative; }
.steps li::before {
  content: counter(st); display: inline-flex; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--navy2), var(--teal)); color: #fff;
  align-items: center; justify-content: center; font-weight: 700; font-size: 0.88rem; margin-bottom: 10px;
}
.steps b { display: block; color: var(--navy); margin-bottom: 5px; }
.steps span { color: var(--mute); font-size: 0.9rem; }
.tbl-wrap { overflow-x: auto; margin-bottom: 1.4em; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--sh-sm); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.93rem; background: #fff; }
.tbl th, .tbl td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl th:last-child, .tbl td:last-child { border-right: 0; }
.tbl th { background: #f1f5f9; color: var(--navy); font-weight: 600; white-space: nowrap; }
.tbl.kv th { width: 210px; }
.note { background: var(--amber-l); border: 1px solid #fcd34d; border-left: 4px solid var(--amber); border-radius: 12px; padding: 16px 20px; margin: 0 0 1.4em; font-size: 0.95rem; }
.note.info { background: #f0f9ff; border-color: #bae6fd; border-left-color: var(--teal); }
.badge { display: inline-block; background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; border-radius: 6px; padding: 2px 9px; font-size: 0.79rem; font-weight: 600; margin: 0 5px 5px 0; }

/* Modules & SVG Illustrations */
.mod { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.mod:first-of-type { border-top: 0; }
.mod-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.mod-head .ico { flex: none; }
.mod-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 14px; }
.mod-vis { margin: 16px 0 8px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #071120 0%, #0d1f3a 100%); padding: 14px; box-shadow: var(--sh-md); }
.mod-vis svg, .info-svg svg { width: 100%; height: auto; display: block; }
.info-svg { margin: 20px 0 26px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #071120 0%, #0c1d36 100%); padding: 18px; box-shadow: var(--sh-md); }
.info-cap { display: flex; justify-content: space-between; align-items: center; color: #94a3b8; font-size: 0.78rem; padding-top: 10px; margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.mod h4 { margin: 0.9em 0 0.45em; font-size: 0.98rem; color: var(--teal); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.toc a { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px 15px; font-size: 0.88rem; font-weight: 600; color: var(--navy); box-shadow: var(--sh-sm); transition: all 0.2s ease; }
.toc a:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; transform: translateY(-1px); }

/* FAQ, Legal, Sticky Subnav, CTA & Footer */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--sh-sm); transition: border-color 0.2s ease; }
details.faq[open] { border-color: #38bdf8; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 1.02rem; }
details p { margin: 0.75em 0 0; color: var(--mute); }
.legal { max-width: 920px; }
.legal h2 { font-size: 1.38rem; margin-top: 2em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal h3 { font-size: 1.08rem; margin-top: 1.3em; }
.sec-nav { position: sticky; top: 58px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); z-index: 40; }
.sec-nav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; }
.sec-nav a { white-space: nowrap; font-size: 0.84rem; font-weight: 600; padding: 5px 13px; border-radius: 99px; color: var(--navy); background: var(--bg); border: 1px solid var(--line); }
.sec-nav a:hover { background: var(--teal-l); border-color: var(--teal); text-decoration: none; }
.flow { width: 100%; height: auto; background: #071120; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--sh-md); }
.cta {
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.25), transparent 60%),
              linear-gradient(135deg, #071120 0%, #0d2240 100%);
  color: #fff; text-align: center; padding: 64px 0; border-top: 1px solid rgba(56, 189, 248, 0.22);
}
.cta h2 { color: #fff; }
.cta p { color: #cbd5e1; max-width: 640px; margin: 0 auto 1.2em; }
.site-footer { background: #050c18; color: #94a3b8; padding: 52px 0 28px; font-size: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #38bdf8; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 0.98rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 28px; padding-top: 18px; color: #64748b; font-size: 0.82rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; }
  .nav {
    display: flex; position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(7, 17, 32, 0.98); backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-direction: column; align-items: stretch; padding: 14px 24px 20px;
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  }
  .site-header.scrolled .nav { top: 58px; }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav .lang { margin: 8px 0 0; text-align: center; }
  .hero-grid, .video-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-cols, .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 42px; }
  .g2, .g3, .g4, .dash-kpis { grid-template-columns: minmax(0, 1fr); }
  .tbl.kv th { width: auto; white-space: normal; }
  .tbl th { white-space: normal; }
  section.s { padding: 44px 0; }
  .video-box { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .svg-line-anim { stroke-dashoffset: 0 !important; }
}
