:root {
  --bg: #07090f;
  --bg-2: #0d111a;
  --bg-3: #141a26;
  --red: #e10600;
  --red-2: #ff3b30;
  --cyan: #00e5ff;
  --text: #f4f7fb;
  --muted: #8e99ad;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.035);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
}
.bg-glow {
  position: fixed;
  inset: auto auto 10% -10%;
  width: 520px;
  height: 520px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(225,6,0,.22), transparent 65%);
  filter: blur(10px);
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 15, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 9, 15, 0.92);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-badge {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 8px 24px rgba(225,6,0,.18);
}
.brand-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-copy strong { font-size: 36px; letter-spacing: .54em; }
.brand-copy small {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .22em;
  color: var(--muted);
  margin-top: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  font-size: 14px;
  color: #c9d2e3;
  transition: color .2s;
}
.nav a:hover { color: #fff; }
.nav-cta {
  padding: 9px 16px;
  border: 1px solid rgba(225,6,0,.45);
  background: linear-gradient(180deg, var(--red), #b10500);
  color: #fff !important;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(225,6,0,.28);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.theme-toggle-track {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  position: relative;
}
.theme-toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
.theme-toggle[aria-pressed="true"] .theme-toggle-track {
  background: var(--red);
}
.theme-toggle[aria-pressed="true"] .theme-toggle-track::after {
  transform: translateX(12px);
}
.theme-light .theme-toggle {
  border-color: rgba(21, 26, 36, 0.14);
  background: #fff;
  color: #151a24;
}
.theme-light .theme-toggle-track {
  background: rgba(21, 26, 36, 0.16);
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex: 0 0 44px;
  z-index: 60;
  position: relative;
}
.menu-btn::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
  transform: translateY(-50%);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: center;
  padding: 48px 0 80px;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: .12em;
  margin-bottom: 18px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0,229,255,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero h1 {
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.22;
  letter-spacing: -.02em;
  font-weight: 700;
  margin-bottom: 12px;
  max-width: 16em;
}
.hero-formula {
  font-family: var(--display);
  font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text);
}
.plus {
  color: var(--red);
  margin: 0 .08em;
  font-weight: 700;
}
.lead, .section-head p, .service-card p, .product-card p, .faq-a p {
  color: var(--muted);
}
.lead { font-size: 17px; max-width: 640px; }
.hero-actions {
  display: flex;
  gap: 14px;
  margin: 32px 0 28px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--red-2), var(--red));
  box-shadow: 0 10px 30px rgba(225,6,0,.32);
}
.btn-ghost {
  border-color: var(--line);
  background: rgba(255,255,255,.03);
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-tags li {
  font-size: 12px;
  color: #c5cede;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.hero-panel {
  background: linear-gradient(180deg, rgba(20,26,38,.9), rgba(13,17,26,.78));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 16px;
}
.live {
  color: #42f0a7;
}
.stack-list li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.stack-list b {
  font-family: var(--display);
  color: var(--cyan);
  font-size: 18px;
}
.stack-list span { font-weight: 600; }
.stack-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}

.section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
  scroll-margin-top: 88px;
}
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.section-head {
  /* max-width: 720px; */
  margin-bottom: 48px;
}
.section-head h2, .contact-copy h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
  margin: 8px 0 14px;
}
.cap-grid, .service-grid, .product-grid, .solution-grid {
  display: grid;
  gap: 18px;
}
.cap-grid { grid-template-columns: repeat(3, 1fr); }
.cap-card, .service-card, .product-card, .solution-card, .contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: border-color .25s, transform .25s, background .25s;
}
.cap-card:hover, .service-card:hover, .product-card:hover, .solution-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225,6,0,.45);
  background: rgba(225,6,0,.08);
}
.cap-code {
  font-family: var(--display);
  color: var(--red-2);
  letter-spacing: .08em;
  font-size: 13px;
  margin-bottom: 16px;
}
.cap-card h3, .service-card h3, .product-card h3, .solution-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.cap-card ul, .solution-card ul {
  margin-top: 16px;
}
.cap-card li, .solution-card li {
  position: relative;
  padding-left: 16px;
  color: #c9d3e4;
  margin: 8px 0;
  font-size: 14px;
}
.cap-card li::before, .solution-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.service-grid { grid-template-columns: repeat(3, 1fr); }
.service-card h3 { font-size: 20px; }

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .25s, background .25s;
}
.faq-item[open] {
  border-color: rgba(225, 6, 0, .4);
  background: rgba(225, 6, 0, .06);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}
.faq-q {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}
.faq-icon {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  transition: transform .25s, border-color .25s, background .25s;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--cyan);
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .25s, opacity .25s;
}
.faq-item[open] .faq-icon {
  border-color: rgba(225, 6, 0, .45);
  background: rgba(225, 6, 0, .12);
}
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: var(--red-2);
}
.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}
.faq-a {
  padding: 0 24px 22px;
}
.faq-a p {
  font-size: 15px;
  line-height: 1.75;
  max-width: 68ch;
}

.product-grid { grid-template-columns: repeat(4, 1fr); }
.product-card span, .solution-kicker {
  font-family: var(--display);
  color: var(--red-2);
  font-size: 13px;
  letter-spacing: .12em;
}
.product-wide { grid-column: span 2; }

.solution-grid { grid-template-columns: 1.15fr .85fr; }
.solution-lead { color: var(--muted); margin-bottom: 18px; }
.solution-card h4 {
  font-size: 14px;
  color: #dce4f2;
  margin: 8px 0;
}
.metric {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(225,6,0,.2), rgba(0,229,255,.08));
}
.metric strong {
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
  color: #fff;
}
.metric span { font-size: 14px; color: #d7deea; }
.solution-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.solution-points h5 { font-size: 14px; margin-bottom: 4px; }
.solution-points p { color: var(--muted); font-size: 13px; }
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.tech-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #d5dcea;
}

.stats {
  position: relative;
  z-index: 1;
  padding: 28px 0 96px;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.about-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  border-left: 2px solid rgba(225, 6, 0, .45);
  padding-left: 14px;
}
#about .stats-inner {
  margin-top: 8px;
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.stat span { color: var(--muted); font-size: 14px; }

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-meta {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}
.contact-meta li span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .14em;
}
.contact-meta a:hover { color: var(--cyan); }
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-embed {
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.contact-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #c9d3e4;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(0,229,255,.55);
}
.form-note {
  color: var(--cyan);
  font-size: 13px;
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: #05070c;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand p {
  color: var(--muted);
  margin-top: 16px;
  max-width: 360px;
}
.footer h4 {
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--cyan);
  margin-bottom: 14px;
}
.footer li { margin: 8px 0; }
.footer a { color: #c8d1e1; }
.footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.theme-light {
  --bg: #ffffff;
  --bg-2: #f6f8fb;
  --bg-3: #eef2f7;
  --text: #151a24;
  --muted: #5c6678;
  --line: rgba(21, 26, 36, 0.08);
  --card: #ffffff;
  --shadow: 0 24px 64px rgba(21, 26, 36, 0.08);
  --cyan: #0b8fa3;
}
.theme-light .bg-grid {
  background-image:
    linear-gradient(rgba(21, 26, 36, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 26, 36, 0.055) 1px, transparent 1px);
}
.theme-light .bg-glow {
  background: radial-gradient(circle, rgba(225, 6, 0, 0.16), transparent 65%);
}
.theme-light .header {
  background: rgba(255, 255, 255, 0.78);
}
.theme-light .header.scrolled {
  background: rgba(255, 255, 255, 0.94);
}
.theme-light .nav a { color: #3d4658; }
.theme-light .nav a:hover { color: var(--red); }
.theme-light .menu-btn {
  border-color: rgba(21, 26, 36, 0.14);
  background: rgba(255, 255, 255, 0.86);
}
.theme-light .menu-btn::before {
  background: #151a24;
  box-shadow: 0 -6px 0 #151a24, 0 6px 0 #151a24;
}
.theme-light .brand-badge {
  width: auto;
  height: 56px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.theme-light .brand-badge img {
  width: auto;
  height: 56px;
}
.theme-light #heroCanvas { opacity: .4; }
.theme-light .btn-primary,
.theme-light .nav-cta {
  color: #fff !important;
}
.theme-light .btn-ghost {
  background: #fff;
  border-color: rgba(21, 26, 36, 0.12);
}
.theme-light .hero-tags li {
  color: #3d4658;
  background: rgba(255, 255, 255, 0.8);
}
.theme-light .hero-panel {
  background: linear-gradient(180deg, #fff, #f7f9fc);
}
.theme-light .section-alt {
  background: linear-gradient(180deg, rgba(21, 26, 36, 0.025), transparent);
}
.theme-light .cap-card,
.theme-light .service-card,
.theme-light .product-card,
.theme-light .solution-card,
.theme-light .contact-form,
.theme-light .faq-item {
  box-shadow: 0 10px 32px rgba(21, 26, 36, 0.04);
}
.theme-light .cap-card:hover,
.theme-light .service-card:hover,
.theme-light .product-card:hover,
.theme-light .solution-card:hover {
  background: rgba(225, 6, 0, 0.04);
}
.theme-light .faq-item[open] {
  background: rgba(225, 6, 0, 0.04);
}
.theme-light .faq-icon {
  background: #fff;
}
.theme-light .cap-card li,
.theme-light .solution-card li { color: #3d4658; }
.theme-light .solution-card h4 { color: #1a2233; }
.theme-light .metric {
  background: linear-gradient(90deg, rgba(225, 6, 0, 0.1), rgba(0, 229, 255, 0.08));
}
.theme-light .metric strong { color: var(--red); }
.theme-light .metric span { color: #3d4658; }
.theme-light .tech-row span { color: #3d4658; background: #fff; }
.theme-light .contact-form label { color: #3d4658; }
.theme-light .contact-form input,
.theme-light .contact-form select,
.theme-light .contact-form textarea {
  background: #fff;
  color: var(--text);
}
.theme-light .footer {
  background: #fff;
  border-top-color: var(--line);
}
.theme-light .footer a { color: #3d4658; }
.theme-light .footer a:hover { color: var(--red); }
.theme-light .footer h4 { color: var(--red); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .7s var(--d, 0s) forwards;
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .cap-grid,
  .service-grid,
  .solution-grid,
  .contact-grid,
  .stats-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-wide { grid-column: span 2; }
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    background: rgba(7,9,15,.96);
    border-bottom: 1px solid var(--line);
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 12px; }
  .menu-btn {
    display: block;
  }
  .hero { min-height: auto; padding-top: 28px; }
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .nav {
    grid-column: 1 / -1;
  }
  .theme-light .nav {
    background: rgba(255, 255, 255, 0.98);
  }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 32px)); }
  .form-row, .solution-points, .product-grid { grid-template-columns: 1fr; }
  .product-wide { grid-column: span 1; }
  .hero h1 { font-size: 26px; }
  .hero-formula { font-size: 30px; }
  .stack-list li { grid-template-columns: 44px 1fr; }
  .stack-list em { grid-column: 2; }
}
