/* ===== Tokens ===== */
:root {
  --primary: #0c4a92;
  --primary-dark: #052859;
  --primary-soft: #e5edf8;
  --accent: #d4a24c;
  --accent-soft: #fbf1dc;
  --violet: #7c3aed;
  --violet-soft: #ede9fe;
  --ink: #0a1a36;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-tint: #f6f8fc;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
  --header-h: 72px;
  --font: "Plus Jakarta Sans", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="zh-CN"] { --font: "Noto Sans SC", "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif; }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section--tight { padding: 32px 0 96px; }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
html[lang="zh-CN"] .eyebrow { letter-spacing: .2em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(12, 74, 146, .25); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--light { background: #fff; color: var(--primary); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 23, 42, .05); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__logo { width: 40px; height: 40px; border-radius: 12px; }
.brand__name { font-size: .82rem; line-height: 1.15; color: var(--muted); }
.brand__name strong { color: var(--ink); font-size: .98rem; font-weight: 800; }
.brand--light .brand__name { color: #94a3b8; }
.brand--light .brand__name strong { color: #fff; }

.nav { display: flex; gap: 4px; margin-left: 16px; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: .93rem; color: var(--text);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--bg-tint); color: var(--primary); }
.nav a.is-active { color: var(--primary); background: var(--primary-soft); }

.lang { display: flex; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted);
  padding: 6px 10px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--primary); color: #fff; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.header.is-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 72px 0 64px;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(12, 74, 146, .12), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(217, 178, 106, .18), transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media { position: relative; }
.hero__media img { border-radius: 28px; box-shadow: var(--shadow-lg); width: 100%; }
.hero__media::before {
  content: ""; position: absolute; inset: 24px -18px -18px 24px;
  border-radius: 28px; background: var(--accent-soft); z-index: -1;
}

.pillars {
  list-style: none; padding: 0; margin: 64px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pillars li { padding: 24px 28px; display: flex; flex-direction: column; gap: 2px; }
.pillars li + li { border-left: 1px solid var(--line); }
.pillars strong { font-size: 1.35rem; font-weight: 800; color: var(--primary); }
.pillars span { color: var(--muted); font-size: .95rem; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about__media img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.mv__card { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.mv__card h3 { font-size: 1rem; color: var(--primary); margin-bottom: 8px; }
.mv__card p { margin: 0; font-size: .95rem; }

/* ===== Grid & cards ===== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.focus-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.focus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.focus-card p { margin: 0; color: var(--muted); }

.icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0;
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--teal { background: var(--primary-soft); color: var(--primary); }
.icon--amber { background: var(--accent-soft); color: #8a5a1c; }
.icon--violet { background: var(--violet-soft); color: var(--violet); }

.product {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.product__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product__body > p { color: var(--muted); font-size: .96rem; }

.tag {
  align-self: flex-start;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.tag--saas { background: var(--primary-soft); color: var(--primary); }
.tag--edu { background: var(--accent-soft); color: #8a5a1c; }
.tag--comm { background: var(--violet-soft); color: var(--violet); }

.checks { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; font-size: .94rem; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c4a92' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.more {
  margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px 36px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #dbe6f5;
}
.more h3 { color: #fff; margin-bottom: 6px; }
.more p { margin: 0; max-width: 640px; }

/* ===== Steps ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.steps__num {
  display: inline-block; font-size: .85rem; font-weight: 800; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: 8px; margin-bottom: 16px;
}
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 64px 32px;
  border-radius: 28px;
  background:
    radial-gradient(500px 260px at 15% 0%, rgba(217, 178, 106, .35), transparent 70%),
    radial-gradient(500px 260px at 85% 100%, rgba(79, 134, 198, .45), transparent 70%),
    var(--ink);
  color: #cbd5e1;
}
.cta h2 { color: #fff; max-width: 720px; margin: 0 auto 14px; }
.cta p { max-width: 600px; margin: 0 auto 28px; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__email {
  display: inline-flex; align-items: center; gap: 16px;
  margin: 12px 0 28px; padding: 16px 22px 16px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: border-color .2s;
}
.contact__email:hover { border-color: var(--primary); }
.contact__email .icon { margin: 0; }
.contact__email small { display: block; color: var(--muted); font-size: .8rem; }
.contact__email strong { color: var(--ink); font-size: 1.1rem; }
.contact__topics-label { font-weight: 700; color: var(--ink); margin-bottom: 12px; }

.form {
  display: grid; gap: 18px;
  padding: 32px; background: #fff;
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
}
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.form input, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-tint); transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical; width: 100%;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(12, 74, 146, .12);
}
.form__note { margin: 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #94a3b8; padding: 56px 0 24px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr auto; gap: 32px; align-items: start; }
.footer__brand p { margin: 14px 0 0; font-size: .92rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 10px; }
.footer__nav a, .footer__email { font-weight: 600; font-size: .93rem; transition: color .2s; }
.footer__nav a:hover, .footer__email:hover { color: #fff; }
.footer__email { padding-top: 10px; color: #ebc77e; }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(148, 163, 184, .18); font-size: .85rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product, .focus-card { transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .header__cta { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    margin: 0; padding: 12px 16px 20px;
    flex-direction: column; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(15, 23, 42, .08);
    display: none;
  }
  .header.is-open .nav { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; }

  .hero__grid, .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 48px; }
  .hero__media { max-width: 560px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
  .brand__name { display: none; }
  .lang button { padding: 6px 8px; }
  .hero__media::before { inset: 16px -8px -10px 16px; }
  .pillars { grid-template-columns: 1fr; margin-top: 48px; }
  .pillars li + li { border-left: 0; border-top: 1px solid var(--line); }
  .mv, .grid--3, .steps { grid-template-columns: 1fr; }
  .more { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .cta { padding: 48px 20px; }
  .form { padding: 24px 20px; }
  .contact__email { width: 100%; }
  .contact__email strong { font-size: 1rem; word-break: break-all; }
}

/* ===== Form status (Formspree) ===== */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button[disabled] { opacity: .65; cursor: progress; transform: none; }
.form__status { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; }
.form__status--ok { background: var(--primary-soft); color: var(--primary-dark); }
.form__status--error { background: #fee2e2; color: #b91c1c; }

/* ===== Brand logo (PNG) & product links ===== */
.brand__logo { object-fit: contain; }
.brand--light .brand__logo { background: #fff; padding: 4px; }
.product__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; align-self: flex-start;
  font-weight: 700; font-size: .93rem; color: var(--primary);
  border-bottom: 2px solid var(--accent-soft); padding-bottom: 2px;
  transition: border-color .2s, gap .2s;
}
.product__link:hover { border-color: var(--accent); gap: 10px; }
.product__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.product__shot { display: block; }
