:root {
  --bg: #f6f3ff;
  --surface: #ffffff;
  --text: #1f2630;
  --muted: #5c6779;
  --primary: #6f5dff;
  --primary-deep: #5847d6;
  --accent: #b16dff;
  --line: #e8e1fb;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(15, 31, 20, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background: radial-gradient(circle at 15% 8%, #efe8ff 0, transparent 34%),
    radial-gradient(circle at 82% 0, #f3ecff 0, transparent 35%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(246, 247, 251, 0.78);
  border-bottom: 1px solid rgba(227, 232, 242, 0.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.brand-logo {
  width: auto;
  height: 68px;
  object-fit: contain;
  border-radius: 0;
  transform: translateY(10px);
}

.fallback-mark {
  display: none;
}

.brand-name {
  display: none;
}

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
  color: var(--muted);
  align-items: center;
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 0;
  cursor: pointer;
}

.dropdown-toggle:hover {
  color: var(--text);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
  display: none;
  z-index: 25;
}

.dropdown-menu a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f2f7f4;
  color: var(--text);
}

.nav-dropdown.open .dropdown-menu {
  display: block;
}

.lang-switch {
  display: inline-flex;
  gap: 0.4rem;
  margin-left: auto;
  margin-right: 0.8rem;
}

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

.header-actions .lang-switch {
  margin: 0;
}

.lang-switch a {
  font-size: 0.82rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.lang-switch a[aria-current="page"] {
  color: var(--text);
  border-color: #adcbbb;
  background: #edf8f3;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.nav-login {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.menu-btn {
  display: none;
  font-size: 1.3rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  width: 40px;
  height: 40px;
}

.hero {
  padding: 72px 0 48px;
}

.zh-hero {
  padding-top: 28px;
}

.hero-scene {
  position: relative;
  min-height: 700px;
  border-radius: 28px;
  overflow: hidden;
  padding: 2.2rem;
  background:
    radial-gradient(circle at 18% 35%, rgba(132, 210, 255, 0.42) 0, rgba(132, 210, 255, 0) 42%),
    radial-gradient(circle at 40% 46%, rgba(255, 74, 202, 0.38) 0, rgba(255, 74, 202, 0) 38%),
    linear-gradient(115deg, rgba(236, 243, 255, 0.9), rgba(180, 192, 223, 0.68) 43%, rgba(76, 87, 122, 0.8));
  border: 1px solid #d3daea;
  box-shadow: 0 26px 60px rgba(29, 42, 71, 0.24);
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.6), transparent 30%),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.35), transparent 22%);
  mix-blend-mode: screen;
}

.hero-logo-wrap {
  position: relative;
  z-index: 3;
  width: fit-content;
}

.hero-logo {
  width: min(440px, 74vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 26px rgba(12, 23, 62, 0.25));
}

.device-stage {
  position: absolute;
  left: 50%;
  bottom: 140px;
  transform: translateX(-50%);
  width: min(950px, 88%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 2;
}

.device-printer {
  width: 168px;
  height: 118px;
  border-radius: 18px;
  background: linear-gradient(165deg, #656d80, #30374a);
  box-shadow: 0 16px 24px rgba(23, 30, 52, 0.35);
}

.device-printer::before {
  content: "";
  display: block;
  width: 78%;
  height: 22px;
  margin: -12px auto 0;
  border-radius: 6px;
  background: linear-gradient(120deg, #f3f7ff, #becce3);
}

.device-screen {
  width: min(620px, 64vw);
  height: 320px;
  border-radius: 28px;
  padding: 20px;
  background: linear-gradient(160deg, #0f1a33, #2f426f);
  border: 8px solid #e8edff;
  box-shadow: 0 22px 36px rgba(24, 35, 62, 0.5);
  transform: perspective(1100px) rotateX(4deg) rotateY(-9deg);
}

.device-ui-top {
  height: 18px;
  width: 58%;
  border-radius: 999px;
  background: rgba(153, 184, 255, 0.85);
  margin-bottom: 14px;
}

.device-ui-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.device-ui-grid span {
  display: block;
  height: 48px;
  border-radius: 9px;
  background: linear-gradient(145deg, #eef4ff, #c8dcff);
}

.device-ui-actions {
  margin-top: 16px;
  width: 44%;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(120deg, #66b5ff, #5a69ff);
}

.device-terminal {
  width: 140px;
  height: 222px;
  border-radius: 34px;
  background: linear-gradient(160deg, #dde3ef, #a9b1c7);
  box-shadow: 0 14px 24px rgba(31, 38, 58, 0.36);
  position: relative;
}

.device-terminal::before {
  content: "";
  position: absolute;
  inset: 16px 16px auto 16px;
  height: 118px;
  border-radius: 18px;
  background: linear-gradient(165deg, #162644, #2a3d63);
}

.hero-glass {
  position: absolute;
  left: 2.2rem;
  right: 2.2rem;
  bottom: 2.2rem;
  z-index: 3;
  border-radius: 22px;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(130deg, rgba(51, 62, 98, 0.6), rgba(34, 45, 83, 0.42));
  backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-glass h1 {
  color: #ffffff;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.hero-glass p {
  margin-top: 0.65rem;
  color: rgba(238, 244, 255, 0.9);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
}

.hero-glass .hero-actions {
  margin-top: 1.2rem;
}

.hero-glass .btn-primary {
  background: linear-gradient(120deg, #4bb6ff, #5d62ff);
}

.hero-glass .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.tag {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}

.sub {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-copy {
  animation: riseIn 0.55s ease-out both;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #15a07f);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  animation: riseIn 0.7s ease-out both;
}

.hero-card h3 {
  margin-bottom: 0.8rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
}

.metric-row span {
  color: var(--muted);
}

.bar {
  margin-top: 1rem;
  height: 8px;
  border-radius: 999px;
  background: #edf1f8;
  overflow: hidden;
}

.bar-fill {
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.trend {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--primary-deep);
}

.hero-proof {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-proof p {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-proof strong {
  color: var(--text);
}

.brands {
  padding: 0 0 22px;
}

.brands p {
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.brand-list {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.brand-list span {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #4e5a72;
}

.section {
  padding: 62px 0;
}

.page-hero {
  padding-top: 44px;
  padding-bottom: 26px;
}

.page-hero h1 {
  margin-top: 0.45rem;
  max-width: 24ch;
}

.section.alt {
  background: linear-gradient(180deg, #f2faf7, #fff5ef);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: 1.5rem;
}

h2 {
  margin-top: 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-types-head {
  margin-top: 2.2rem;
}

.feature-sub {
  margin-bottom: 1.2rem;
}

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

.capability-card {
  background: linear-gradient(160deg, #ffffff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.capability-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.capability-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  display: grid;
  gap: 0.36rem;
}

.capability-card:last-child {
  grid-column: span 2;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--muted);
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.steps span {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #e9f5f0;
  color: var(--primary-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.plan .price {
  margin-top: 0.4rem;
  font-size: 2rem;
  font-weight: 700;
}

.plan .price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

.plan > p {
  color: var(--muted);
  margin: 0.8rem 0 1rem;
}

.plan.featured {
  border-color: #abd3c1;
  box-shadow: var(--shadow);
}

.testimonials {
  background: #fff;
  border-top: 1px solid var(--line);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

blockquote {
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fcfdfa;
  color: #42506b;
}

.contact-section {
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
}

.contact-copy p {
  color: var(--muted);
}

.contact-copy > p {
  margin-top: 0.8rem;
}

.contact-points {
  margin: 1.1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.contact-form {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.45rem;
}

.contact-form label {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: #3f4c62;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d4ddcf;
  border-radius: 10px;
  min-height: 42px;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.72rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #4db295;
}

.form-submit {
  margin-top: 0.6rem;
}

.form-note {
  min-height: 1.2em;
  font-size: 0.88rem;
}

.form-note.success {
  color: #0d7a60;
}

.form-note.error {
  color: #b93737;
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}

.cta-strip {
  background: linear-gradient(125deg, #f0f8f4, #eef3ff);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.cta-wrap h2 {
  max-width: 28ch;
}

.login-wrap {
  width: min(480px, 100%);
  margin: 0 auto;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-grid p {
  color: var(--muted);
}

.footer-copy {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-legal {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.88rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 920px) {
  .hero-scene {
    min-height: 620px;
  }

  .device-stage {
    bottom: 160px;
    width: 92%;
  }

  .device-printer,
  .device-terminal {
    display: none;
  }

  .device-screen {
    width: 100%;
    height: 280px;
    transform: perspective(900px) rotateX(3deg) rotateY(-4deg);
  }

  .hero-grid,
  .flow-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .service-grid,
  .capability-grid,
  .about-grid,
  .pricing-grid,
  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero-scene {
    min-height: 540px;
    padding: 1.2rem;
    border-radius: 20px;
  }

  .hero-logo {
    width: min(270px, 76vw);
  }

  .device-stage {
    bottom: 150px;
  }

  .device-screen {
    height: 220px;
    border-width: 6px;
    padding: 14px;
  }

  .device-ui-grid span {
    height: 34px;
  }

  .hero-glass {
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    padding: 1rem;
  }

  .hero-glass .hero-actions {
    gap: 0.55rem;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    right: 4%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.7rem;
    display: none;
    flex-direction: column;
    min-width: 200px;
    gap: 0.45rem;
  }

  .dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 0.2rem 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 1px solid var(--line);
    margin-top: 0.3rem;
    min-width: auto;
  }

  .lang-switch {
    margin-right: 0.55rem;
  }

  .header-actions {
    margin-right: 0.55rem;
  }

  .main-nav.show {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .feature-grid,
  .service-grid,
  .capability-grid,
  .about-grid,
  .pricing-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .capability-card:last-child {
    grid-column: auto;
  }

  .brand-logo {
    height: 56px;
  }
}

@media (min-width: 721px) {
  .nav-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 1rem;
  }

  .main-nav {
    justify-self: center;
  }

  .lang-switch {
    margin-left: 0;
    margin-right: 0;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
