/* ===== Theme tokens ===== */
:root {
  --blue-900: #0a1f3c;
  --blue-800: #0d2a52;
  --blue-700: #10407f;
  --blue-600: #1565d8;
  --blue-500: #1e6fff;
  --blue-400: #3b8bff;
  --cyan: #00c2ff;
  --ink: #0c1626;
  --muted: #5b6b82;
  --line: #e3eaf3;
  --bg: #ffffff;
  --bg-alt: #f4f8ff;
  --radius: 16px;
  --shadow: 0 18px 40px -18px rgba(16, 64, 127, .35);
  --shadow-hover: 0 26px 60px -20px rgba(30, 111, 255, .5);
  --maxw: 1180px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: .25s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--cyan));
  color: #fff; box-shadow: 0 10px 24px -8px rgba(30,111,255,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-ghost { background: transparent; color: var(--blue-600); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-500); background: var(--bg-alt); }
.btn-block { width: 100%; }

/* ===== Navbar ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: .3s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(10,31,60,.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-logo { height: 36px; width: auto; display: block; }
.footer-logo { height: 40px; margin-bottom: 14px; }
.brand-text { color: var(--blue-700); font-weight: 700; }
.brand-accent { color: var(--blue-500); margin-left: 4px; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--blue-900); transition: color .2s; }
.nav-links a:hover { color: var(--blue-500); }
.nav-cta { color: #fff !important; padding: 10px 20px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--blue-900); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0,194,255,.18), transparent 60%),
              radial-gradient(900px 500px at 0% 10%, rgba(30,111,255,.16), transparent 55%),
              linear-gradient(180deg, #f7fbff, #ffffff); }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(30,111,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(30,111,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--blue-600); background: rgba(30,111,255,.1); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -.5px; }
.grad-text { background: linear-gradient(120deg, var(--blue-500), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 22px 0 30px; font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 28px; font-weight: 800; color: var(--blue-700); }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* Hero visual */
.hero-visual { display: grid; place-items: center; }
.orbit { position: relative; width: 340px; height: 340px; display: grid; place-items: center; }
.coin-spin {
  width: 170px; height: 170px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #5fb0ff, #1565d8 55%, #0a1f3c);
  box-shadow: 0 0 0 10px rgba(30,111,255,.12), 0 0 0 22px rgba(0,194,255,.08), var(--shadow-hover);
  animation: float 5s ease-in-out infinite;
  position: relative;
}
.coin-spin::after {
  content: "C"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 64px; font-weight: 900; color: rgba(255,255,255,.92);
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }
.chip {
  position: absolute; padding: 8px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--blue-700);
  box-shadow: var(--shadow); white-space: nowrap;
}
.chip-1 { top: 0; left: 50%; transform: translateX(-50%); }
.chip-2 { top: 22%; right: -6px; }
.chip-3 { bottom: 22%; right: -6px; }
.chip-4 { bottom: 0; left: 50%; transform: translateX(-50%); }
.chip-5 { top: 22%; left: -6px; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin: 14px 0 12px; letter-spacing: -.4px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ===== Products ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; overflow: hidden; transition: .3s ease;
}
.product-card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(30,111,255,.08), transparent 55%); opacity: 0; transition: .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(30,111,255,.4); }
.product-card:hover::before { opacity: 1; }
.pc-icon { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(30,111,255,.14), rgba(0,194,255,.14)); margin-bottom: 18px; }
.pc-icon svg { width: 34px; height: 34px; }
.product-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.product-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; position: relative; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.pc-tags span { font-size: 12px; color: var(--blue-600); background: rgba(30,111,255,.08); padding: 4px 10px; border-radius: 999px; }

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: .3s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, rgba(30,111,255,.12), rgba(0,194,255,.12)); margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { text-align: center; padding: 30px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; }
.step-num {
  width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan)); color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: 0 10px 22px -8px rgba(30,111,255,.6);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ===== Contact ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.contact-info h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin: 14px 0 12px; }
.contact-info p { color: var(--muted); margin-bottom: 22px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-list span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(30,111,255,.1); font-size: 16px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field-full { grid-column: 1 / -1; }
.contact-form .field { display: inline-flex; width: 100%; }
.contact-form > .field { width: calc(50% - 8px); }
.contact-form .field-full { width: 100%; }
.contact-form { display: flex; flex-wrap: wrap; gap: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--blue-800); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fbfdff; color: var(--ink); transition: .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(30,111,255,.15); background: #fff;
}
.field textarea { resize: vertical; }
.form-note { width: 100%; margin-top: 4px; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.form-note.ok { background: rgba(40,167,69,.12); color: #1f7a3d; }
.form-note.err { background: rgba(220,53,69,.1); color: #c0392b; }

/* ===== Footer ===== */
.footer { background: var(--blue-900); color: #c7d6ea; padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .brand-text { color: var(--blue-500); font-size: 18px; font-weight: 700; }
.footer-brand .brand-accent { color: var(--blue-400); }
.footer-brand p { margin-top: 14px; color: #9fb3cc; max-width: 320px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-cols a { display: block; color: #9fb3cc; font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer-cols a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; color: #8aa0bd; text-align: center; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .product-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 12px 22px 22px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-120%); transition: .3s;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; text-align: center; }
  .nav-toggle { display: flex; }
  .product-grid, .feature-grid, .steps { grid-template-columns: 1fr; }
  .contact-form > .field { width: 100%; }
  .hero-stats { gap: 22px; }
  .section { padding: 64px 0; }
}
