:root {
  --bg: #07111f;
  --panel: rgba(8, 16, 29, 0.82);
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9f1ff;
  --muted: rgba(233, 241, 255, 0.72);
  --soft: rgba(233, 241, 255, 0.54);
  --accent: #8fd3ff;
  --accent-2: #74f0c8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max: 1200px;
  --font-sans: "Aptos", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Aptos Display", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(143, 211, 255, 0.18), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(116, 240, 200, 0.12), transparent 28%),
    linear-gradient(180deg, #09111c 0%, #07111f 46%, #041019 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  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: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 70%);
  pointer-events: none;
  opacity: 0.25;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(7,17,31,0.94), rgba(7,17,31,0.68));
  border-bottom: 1px solid var(--line);
}
.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(143, 211, 255, 0.95), rgba(116, 240, 200, 0.85));
  position: relative; flex: 0 0 auto;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 10px;
  border: 2px solid rgba(7, 17, 31, 0.75);
  border-radius: 10px; transform: rotate(12deg);
}
.brand h1 { margin: 0; font-size: 16px; line-height: 1.2; letter-spacing: 0.04em; }
.brand p { margin: 4px 0 0; color: var(--soft); font-size: 12px; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.nav a { color: var(--muted); font-size: 14px; transition: color 180ms ease; }
.nav a:hover { color: var(--text); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: rgba(255,255,255,0.03);
}
.lang-toggle button {
  border: 0; color: var(--muted); background: transparent; padding: 10px 14px;
  cursor: pointer; transition: background 180ms ease, color 180ms ease;
}
.lang-toggle button.active { background: rgba(143, 211, 255, 0.18); color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 13px 18px; border: 1px solid transparent; cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, rgba(143, 211, 255, 0.98), rgba(116, 240, 200, 0.9)); color: #041019; font-weight: 700; }
.btn.secondary { background: rgba(255,255,255,0.04); border-color: var(--line); color: var(--text); }

.hero { padding: 52px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 14px; color: var(--muted); background: rgba(255,255,255,0.03);
  margin-bottom: 22px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.hero h2 {
  margin: 0; font-family: var(--font-display); font-size: clamp(44px, 6vw, 76px);
  line-height: 0.96; letter-spacing: -0.04em;
}
.hero h2 .accent {
  background: linear-gradient(135deg, #ffffff, #9edcff 45%, #74f0c8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin: 18px 0 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.7; color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.section { padding: 72px 0 0; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h3 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1; letter-spacing: -0.04em; }
.section-head p { margin: 0; color: var(--muted); max-width: 68ch; line-height: 1.7; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.card { padding: 20px; }
.card h4 { margin: 0 0 10px; font-size: 22px; line-height: 1.15; letter-spacing: -0.03em; }
.card p, .text-muted { margin: 0; color: var(--muted); line-height: 1.7; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill {
  padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--line); color: var(--text); font-size: 12px;
}

.hero-visual {
  position: relative; min-height: 620px; border-radius: 34px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(4,16,25,0.18), rgba(4,16,25,0.74)), center/cover no-repeat;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(143, 211, 255, 0.26), transparent 22%),
    radial-gradient(circle at 80% 22%, rgba(116, 240, 200, 0.14), transparent 26%),
    linear-gradient(180deg, transparent 0%, rgba(4,16,25,0.22) 100%);
}
.hero-overlay {
  position: absolute; left: 22px; right: 22px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.64); border-radius: 22px; overflow: hidden; box-shadow: 0 16px 60px rgba(0,0,0,0.28);
}
.hero-overlay.top { top: 22px; padding: 18px 20px; }
.hero-overlay.bottom { bottom: 22px; display: grid; grid-template-columns: 1.05fr 0.95fr; }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); background: rgba(255,255,255,0.03); font-size: 12px;
}

.mini-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 22px; }
.mini-tile {
  border-radius: 16px; min-height: 124px; background: center/cover no-repeat;
  border-top: 1px solid rgba(255,255,255,0.08); border-left: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: end; padding: 14px; color: #fff;
}
.mini-tile small { display: inline-flex; max-width: 18ch; line-height: 1.45; font-weight: 700; text-shadow: 0 8px 20px rgba(0,0,0,0.45); }
.quick-contact { display: grid; gap: 14px; padding: 22px; align-content: center; background: linear-gradient(135deg, rgba(143, 211, 255, 0.12), rgba(116, 240, 200, 0.08)); }
.quick-contact h3 { margin: 0; font-size: 20px; }
.quick-contact p { margin: 0; color: var(--muted); line-height: 1.6; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.stat, .step, .contact-box, .form-box {
  padding: 18px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,0.03);
}
.stat strong { display: block; font-size: 28px; margin-bottom: 8px; letter-spacing: -0.04em; }
.stat span { color: var(--soft); font-size: 13px; line-height: 1.6; }

.timeline { display: grid; gap: 12px; }
.step { display: grid; gap: 6px; }
.step .num { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; }
.step strong { font-size: 18px; }

.contact-shell {
  background: radial-gradient(circle at top left, rgba(143, 211, 255, 0.16), transparent 38%), linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.03));
  border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden;
}
.contact-grid { display: grid; grid-template-columns: 1fr 0.95fr; }
.contact-copy { padding: 30px; background: rgba(7,17,31,0.62); border-right: 1px solid var(--line); }
.contact-copy h4 { margin: 0; font-size: 30px; letter-spacing: -0.04em; }
.contact-copy p { margin: 14px 0 0; line-height: 1.8; color: var(--muted); max-width: 56ch; }
.contact-links { display: grid; gap: 12px; margin-top: 24px; }
.contact-links a, .contact-links button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 16px;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--text); cursor: pointer;
}
.contact-links a:hover, .contact-links button:hover { border-color: rgba(143, 211, 255, 0.5); }

form { padding: 30px; display: grid; gap: 14px; background: rgba(255,255,255,0.02); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; color: var(--soft); text-transform: uppercase; letter-spacing: 0.1em; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; background: rgba(7,17,31,0.8); color: var(--text); outline: none;
}
.field textarea { min-height: 122px; resize: vertical; }

.footer { padding: 38px 0 48px; color: var(--soft); text-align: center; font-size: 13px; }

.floating {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; gap: 12px; justify-items: end;
}
.chat-panel {
  width: min(360px, calc(100vw - 28px)); border-radius: 24px; border: 1px solid var(--line); background: rgba(7,17,31,0.94);
  backdrop-filter: blur(16px); box-shadow: var(--shadow); overflow: hidden; transform: translateY(12px); opacity: 0; pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.chat-panel .head {
  padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.chat-panel .head strong { font-size: 16px; }
.chat-panel .head span { color: var(--soft); font-size: 12px; }
.chat-panel .body { padding: 16px; display: grid; gap: 10px; }
.chat-panel .body p { margin: 0 0 4px; color: var(--muted); line-height: 1.6; }
.chat-panel .body .btn { width: 100%; justify-content: space-between; }
.fab {
  width: 58px; height: 58px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, rgba(143, 211, 255, 0.98), rgba(116, 240, 200, 0.9)); color: #041019; font-size: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; }
  .grid-3, .grid-2, .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-copy { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 24px), var(--max)); }
  .topbar .inner { flex-direction: column; align-items: stretch; }
  .nav, .toolbar { justify-content: space-between; }
  .hero { padding-top: 34px; }
  .hero-meta, .grid-3, .grid-2, .grid-4, .stats, .field-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; }
  .hero-overlay.bottom { grid-template-columns: 1fr; }
  .mini-tiles { grid-template-columns: 1fr; }
  .section { padding-top: 56px; }
  .floating { right: 12px; bottom: 12px; }
}
