/* AgilePulse / 灵脉智能 — modern agile SaaS */

:root {
  --bg: #0b1220;
  --bg-elevated: #111827;
  --bg-card: #151d2e;
  --bg-card-hover: #1a2438;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --primary: #6366f1;
  --primary-2: #22d3ee;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent: #34d399;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --header-h: 68px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(34, 211, 238, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--primary), var(--primary-2));
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px var(--primary-glow);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px 7px 11px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-top: 0;
  border-radius: 0 0 999px 999px;
}

.brand-mark.small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.brand-mark.small::after {
  inset: 8px 6px 9px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-zh {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.brand-en {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(148, 163, 184, 0.1);
  color: #fff;
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.12);
  color: #fff;
  outline: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 36px;
  place-items: center;
  gap: 5px;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-soft);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: auto auto -20% 50%;
  width: min(720px, 90vw);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.22), transparent 70%);
  pointer-events: none;
  filter: blur(10px);
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.08);
  color: #6ee7b7;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.1rem, 5.5vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 780;
}

.hero-title-en {
  display: inline;
  font-weight: 650;
  background: linear-gradient(90deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  margin: 1.15rem 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: var(--text-soft);
  font-weight: 500;
}

.hero-sub {
  margin: 0.9rem auto 0;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 3px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5 55%, #0891b2);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.45);
}

.btn-ghost {
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(165, 180, 252, 0.45);
  background: rgba(99, 102, 241, 0.1);
  color: #fff;
}

/* Sections */

.section {
  padding: clamp(3.25rem, 7vw, 5.25rem) 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section.contact .section-header,
.section.services .section-header {
  margin-inline: auto;
  text-align: center;
}

.section-label {
  margin: 0 0 0.55rem;
  color: #a5b4fc;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-lead {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: start;
}

.about-copy {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.about-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.point-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  font-size: 0.95rem;
}

.about-points h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.about-points p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Services */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card {
  padding: 1.35rem 1.35rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s,
    box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.35);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  color: #a5b4fc;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(165, 180, 252, 0.18);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Contact */

.contact-inner {
  max-width: 720px;
}

.contact-card {
  margin-top: 0.5rem;
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(34, 211, 238, 0.04)),
    var(--bg-card);
  box-shadow: var(--shadow);
}

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-key {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-value {
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

a.contact-value {
  color: #a5b4fc;
}

a.contact-value:hover {
  color: #c7d2fe;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.25rem;
  background: rgba(0, 0, 0, 0.18);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand strong {
  display: block;
  font-size: 0.95rem;
}

.footer-brand p {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin: 0;
    padding: 0.85rem 1rem 1.1rem;
    background: rgba(11, 18, 32, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 1rem;
    border-radius: 12px;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .contact-value {
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
