:root {
  --bg: #0b1020;
  --bg-alt: #0f1630;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e6e9f2;
  --muted: #9aa3bd;
  --primary: #3b7bff;
  --accent: #8f7bff;
  --grad: linear-gradient(120deg, #1e8bff 0%, #5b4bff 55%, #9a4dff 100%);
  --radius: 14px;
  --nav-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.eyebrow {
  font-size: 13px; letter-spacing: .18em; color: var(--accent);
  font-weight: 600; margin-bottom: 12px; text-transform: uppercase;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.btn-sm { padding: 7px 18px; font-size: 14px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(79, 124, 255, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(79, 124, 255, .8); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 50;
  transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 16, 32, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--border); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; letter-spacing: .06em; }
.brand-text small { font-size: 10px; color: var(--muted); letter-spacing: .2em; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(79, 124, 255, .22), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(143, 123, 255, .14), transparent 70%),
    var(--bg);
}
#tokenField { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-inner { position: relative; padding: calc(var(--nav-h) + 40px) 0 80px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 60px); letter-spacing: .02em; max-width: 880px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 640px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tags { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li {
  font-size: 13px; color: var(--muted); padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
}

/* Sections */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(26px, 3.4vw, 40px); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p:last-child { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-text p { color: var(--muted); }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.value h3 { font-size: 17px; margin-bottom: 6px; }
.value h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); margin-right: 10px; vertical-align: middle; }
.value p { color: var(--muted); font-size: 14px; margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s, border-color .3s, background .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(79, 124, 255, .5); background: rgba(79, 124, 255, .06); }
.card-icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(79, 124, 255, .25), rgba(143, 123, 255, .18));
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* Platform */
.platform { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.platform-text > p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--muted); }
.checklist li strong { color: var(--text); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 12px; display: grid; place-items: center;
}
.terminal {
  border-radius: var(--radius); background: #070b17; border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(79, 124, 255, .45);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4260; }
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.terminal pre {
  margin: 0; padding: 20px; min-height: 320px; font-family: var(--mono); font-size: 13px; line-height: 1.8;
  color: #c9d3f0; white-space: pre-wrap; word-break: break-all;
}
.terminal .t-step { color: var(--accent); }
.terminal .t-tool { color: #a78bfa; }
.terminal .t-ok { color: #4ade80; }
.terminal .cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: none; }
.step { position: relative; padding: 28px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-no { font-family: var(--mono); font-size: 30px; font-weight: 700; display: block; margin-bottom: 10px; }
.step-no { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* Industries */
.industries { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 820px; margin: 0 auto; }
.industries span {
  padding: 12px 26px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); transition: color .2s, border-color .2s;
}
.industries span:hover { color: var(--text); border-color: var(--accent); }

/* Contact */
.contact-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-list span { color: var(--muted); min-width: 72px; }
.contact-list a:hover { color: var(--accent); }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 34px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text); background: rgba(0, 0, 0, .25);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; outline: none; transition: border-color .2s;
}
.field select option { background: var(--bg-alt); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field .invalid { border-color: #f87171; }
.form-tip { margin: 0; font-size: 14px; min-height: 1.4em; color: var(--muted); }
.form-tip.ok { color: #4ade80; }
.form-tip.err { color: #f87171; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0 24px; background: #080c19; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 20px;
  border-top: 1px solid var(--border); font-size: 13px; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--text); }

.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%; z-index: 40;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 18px;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .about, .platform, .contact { gap: 44px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(11, 16, 32, .97); border-bottom: 1px solid var(--border); padding: 8px 24px 20px;
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 16px; }
  .nav.menu-open { background: rgba(11, 16, 32, .97); }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about, .platform, .contact { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .cards, .about-values, .steps { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
  .contact-list li { flex-direction: column; gap: 2px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

.copy-btn {
  margin-left: auto; padding: 2px 12px; font: inherit; font-size: 13px; color: var(--accent); cursor: pointer;
  background: transparent; border: 1px solid rgba(143, 123, 255, .4); border-radius: 999px; transition: background .2s;
}
.copy-btn:hover { background: rgba(143, 123, 255, .1); }
@media (max-width: 560px) { .copy-btn { margin-left: 0; align-self: flex-start; margin-top: 6px; } }

/* 经营范围 */
.scope {
  margin-top: 56px; padding: 28px 32px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.scope h3 { font-size: 17px; margin-bottom: 14px; }
.scope ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.scope li {
  font-size: 14px; color: var(--muted); padding: 6px 14px; border-radius: 8px;
  background: rgba(59, 123, 255, .08); border: 1px solid rgba(59, 123, 255, .2);
}

/* 核心产品卡片 */
.card-featured { border-color: rgba(143, 123, 255, .45); background: linear-gradient(160deg, rgba(59, 123, 255, .12), rgba(154, 77, 255, .08)); }
.card-badge {
  display: inline-block; font-size: 12px; color: #fff; background: var(--grad);
  padding: 2px 10px; border-radius: 999px; margin-bottom: 10px;
}

.platform-note {
  margin-top: 20px; font-size: 14px; padding: 12px 16px; border-radius: 10px;
  border-left: 3px solid var(--accent); background: rgba(143, 123, 255, .08); color: var(--muted);
}
