/* Main Styles - Final Premium AI Edition */
@import 'variables.css';

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  --pointer-x: 50%;
  --pointer-y: 45%;
  font-family: var(--font-family);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(73, 217, 255, 0.12), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(184, 107, 255, 0.12), transparent 25%),
    radial-gradient(circle at 50% 90%, rgba(127, 245, 255, 0.08), transparent 34%),
    var(--bg-primary);
}

body.modal-open {
  overflow: hidden;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -6;
  pointer-events: none;
}

.bg-grid,
.bg-noise,
.bg-pulse,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-grid {
  z-index: -5;
  background-image:
    linear-gradient(rgba(100, 142, 227, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 142, 227, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 28%, rgba(0, 0, 0, 0) 84%);
  opacity: 0.36;
}

.bg-noise {
  z-index: -4;
  background-image: radial-gradient(rgba(219, 235, 255, 0.35) 0.5px, transparent 0.8px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
  opacity: 0.05;
}

.bg-pulse {
  z-index: -3;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(73, 217, 255, 0.18), transparent 36%);
  filter: blur(55px);
  opacity: 0.48;
  animation: bgPulse 10s ease-in-out infinite;
}

.bg-glow {
  z-index: -2;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  animation: glowDrift 13s ease-in-out infinite alternate;
}

.bg-glow-1 {
  top: -11vw;
  left: -9vw;
  background: rgba(73, 217, 255, 0.8);
}

.bg-glow-2 {
  right: -10vw;
  bottom: -14vw;
  background: rgba(184, 107, 255, 0.8);
  animation-delay: 2s;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.section {
  position: relative;
  padding: var(--spacing-3xl) 0;
}

.section-shell::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 166, 255, 0.55), transparent);
  opacity: 0.42;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(2rem, 3.9vw, 3.1rem);
}

h3 {
  font-size: 1.45rem;
  color: #dce9ff;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-soft);
}

.section-kicker {
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--color-accent-soft);
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  background: linear-gradient(90deg, #f2f7ff 8%, #98dcff 42%, #cdadff 76%, #f2f7ff 98%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shared Panel Card */
.panel-card {
  position: relative;
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--border-color);
  background: linear-gradient(172deg, rgba(14, 24, 47, 0.87), rgba(8, 14, 29, 0.84));
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.panel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(83, 217, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: panelSweep 6.2s linear infinite;
  opacity: 0.26;
  pointer-events: none;
}

.panel-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 200deg,
    transparent 0deg,
    transparent 252deg,
    rgba(83, 217, 255, 0.95) 290deg,
    rgba(184, 107, 255, 0.9) 330deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderOrbit 5.5s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

.panel-card > * {
  position: relative;
  z-index: 1;
}

.panel-card:hover {
  transform: translateY(-6px) scale(1.005);
  border-color: var(--border-color-strong);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.mini-card {
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(104, 151, 240, 0.42);
  background: linear-gradient(176deg, rgba(19, 31, 60, 0.74), rgba(9, 15, 30, 0.78));
  box-shadow: inset 0 0 24px rgba(63, 108, 198, 0.16);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.92rem 0;
  background: rgba(5, 10, 21, 0.66);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(91, 138, 229, 0.36);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(113, 196, 255, 0.55), transparent);
  opacity: 0.5;
}

.navbar.is-scrolled {
  background: rgba(4, 8, 18, 0.9);
  box-shadow: 0 20px 42px -28px rgba(4, 10, 24, 0.92);
  border-bottom-color: rgba(117, 170, 255, 0.48);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: #edf6ff;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  background: linear-gradient(140deg, rgba(140, 239, 255, 0.95), rgba(156, 141, 255, 0.95));
  color: #031223;
  box-shadow: 0 8px 22px rgba(74, 156, 255, 0.34);
}

.logo-text {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  gap: 1.55rem;
  align-items: center;
  list-style: none;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid rgba(104, 152, 236, 0.54);
  background: linear-gradient(160deg, rgba(13, 24, 48, 0.76), rgba(8, 14, 28, 0.78));
  box-shadow: inset 0 0 16px rgba(55, 108, 188, 0.16);
}

.lang-btn {
  min-width: 2.05rem;
  height: 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #aec8ee;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: #f2f8ff;
  border-color: rgba(123, 206, 255, 0.52);
}

.lang-btn.is-active {
  color: #052239;
  background: linear-gradient(135deg, rgba(143, 239, 255, 0.95), rgba(165, 143, 255, 0.96));
  box-shadow: 0 0 16px rgba(74, 168, 255, 0.28);
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.18rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(127, 245, 255, 0.95), rgba(184, 107, 255, 0.95));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #e7f2ff;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.theme-btn {
  padding: 0.52rem 0.9rem;
  font-size: 0.8rem;
  min-width: 4.9rem;
}

.nav-wechat {
  padding: 0.52rem 0.9rem;
  font-size: 0.8rem;
  min-width: 4.4rem;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.45rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal), color var(--transition-normal);
}

.btn::after {
  content: "";
  position: absolute;
  inset: -120% auto -120% -45%;
  width: 35%;
  background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.45) 50%, transparent 90%);
  transform: rotate(18deg);
  transition: left 560ms ease;
  pointer-events: none;
}

.btn:hover::after {
  left: 115%;
}

.btn-primary {
  color: var(--text-inverse);
  border-color: rgba(145, 214, 255, 0.5);
  background: linear-gradient(135deg, #8ff0ff 0%, #61d2ff 44%, #9f8eff 100%);
  box-shadow: 0 0 0 1px rgba(148, 217, 255, 0.28), 0 12px 32px rgba(81, 157, 255, 0.34);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 0 1px rgba(168, 224, 255, 0.42), 0 16px 36px rgba(81, 157, 255, 0.46);
}

.btn-secondary {
  border-color: rgba(104, 152, 236, 0.72);
  background: linear-gradient(160deg, rgba(16, 28, 56, 0.74), rgba(9, 17, 33, 0.8));
  color: #deecff;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 206, 255, 0.9);
  color: #f2f8ff;
  box-shadow: 0 0 0 1px rgba(134, 192, 255, 0.22), 0 10px 28px rgba(56, 118, 201, 0.35);
}

.btn-inline {
  margin-top: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 94px;
  overflow: hidden;
}

.hero-stream {
  position: absolute;
  left: -25%;
  right: -25%;
  height: 2px;
  pointer-events: none;
}

.hero-stream-a {
  top: 34%;
  background: linear-gradient(90deg, transparent, rgba(76, 209, 255, 0.94), rgba(180, 110, 255, 0.88), transparent);
  animation: heroBandA 7.4s linear infinite;
}

.hero-stream-b {
  top: 72%;
  background: linear-gradient(90deg, transparent, rgba(145, 211, 255, 0.54), rgba(104, 232, 255, 0.72), transparent);
  animation: heroBandB 9.8s linear infinite;
  opacity: 0.55;
}

.hero-content {
  max-width: 960px;
  padding: 2rem 2rem 1.7rem;
  animation: revealUp 720ms ease both;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  margin-bottom: 1.1rem;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(105, 182, 255, 0.52);
  background: rgba(6, 14, 29, 0.72);
  box-shadow: inset 0 0 18px rgba(71, 139, 224, 0.2);
}

.status-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--color-signal);
  box-shadow: 0 0 0 0 rgba(59, 255, 180, 0.55);
  animation: statusPulse 2.2s ease-out infinite;
}

.status-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #cbf1ff;
}

.status-divider {
  width: 1px;
  height: 0.75rem;
  background: rgba(125, 169, 255, 0.5);
}

.status-note {
  font-size: 0.78rem;
  color: #98b8e5;
}

.hero-title {
  margin-bottom: 1rem;
}

.hero-title-main {
  position: relative;
  display: inline-block;
  font-size: clamp(2.55rem, 6.2vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  background: linear-gradient(110deg, #ecf8ff 5%, #8de7ff 33%, #b7b6ff 55%, #7cf3ff 73%, #ecf8ff 93%);
  background-size: 210% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 34px rgba(93, 199, 255, 0.32);
  animation: titleGradient 8.8s ease infinite;
}

.hero-title-main::after {
  content: "";
  position: absolute;
  inset: -8px -5%;
  background: linear-gradient(110deg, transparent 42%, rgba(190, 239, 255, 0.35) 52%, transparent 62%);
  transform: translateX(-120%);
  animation: titleSweep 6.4s linear infinite;
  pointer-events: none;
}

.hero-title-sub {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #9ec0e9;
}

.hero-subtitle {
  max-width: 760px;
  color: #c2d3ee;
  font-size: 1.08rem;
  margin-bottom: 1.35rem;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: 1.35rem;
}

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

.metric {
  padding: 0.88rem 0.95rem;
}

.metric-label {
  display: block;
  margin-bottom: 0.24rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.metric strong {
  color: #edf6ff;
  font-size: 0.9rem;
}

/* About */
.about {
  background: linear-gradient(180deg, rgba(11, 18, 36, 0.72), rgba(7, 12, 24, 0.7));
  border-top: 1px solid rgba(84, 130, 215, 0.22);
  border-bottom: 1px solid rgba(84, 130, 215, 0.22);
}

.about-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.7rem 1.75rem;
  text-align: center;
}

.about-grid {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.about-chip {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(106, 154, 242, 0.46);
  background: rgba(18, 30, 57, 0.78);
  color: #d7e7ff;
  font-size: 0.77rem;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

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

.project-card {
  padding: 1.25rem;
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.project-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.72rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  color: #031327;
  background: linear-gradient(145deg, rgba(143, 239, 255, 0.95), rgba(157, 143, 255, 0.92));
}

.project-state {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: #b9d5ff;
  border: 1px solid rgba(112, 169, 255, 0.52);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(13, 25, 49, 0.72);
}

.project-card p {
  min-height: 4.4rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 0.75rem;
}

.project-meta span {
  font-size: 0.73rem;
  color: #c8dcff;
  border: 1px dashed rgba(122, 174, 255, 0.5);
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  background: rgba(15, 24, 45, 0.74);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: 0.5rem;
}

.tag {
  background: linear-gradient(175deg, rgba(29, 49, 92, 0.82), rgba(13, 24, 46, 0.84));
  color: #d8e9ff;
  border: 1px solid rgba(99, 150, 236, 0.48);
  padding: 0.2rem 0.48rem;
  border-radius: var(--border-radius);
  font-size: 0.76rem;
  font-weight: 500;
}

/* AGI Showcase */
.agi-showcase {
  padding-top: calc(var(--spacing-3xl) + 0.4rem);
}

.showcase-main {
  padding: 1.5rem;
  background:
    radial-gradient(circle at 85% 18%, rgba(178, 124, 255, 0.16), transparent 30%),
    radial-gradient(circle at 14% 86%, rgba(92, 223, 255, 0.2), transparent 35%),
    linear-gradient(170deg, rgba(8, 16, 36, 0.97), rgba(5, 10, 22, 0.96));
}

.showcase-main::before {
  opacity: 0.34;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.showcase-pill,
.showcase-version {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(110, 170, 255, 0.56);
  background: rgba(12, 24, 49, 0.78);
  color: #d8eaff;
  padding: 0.28rem 0.6rem;
}

.showcase-title {
  margin-bottom: 0.25rem;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: 0.01em;
}

.showcase-subtitle {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9fc0ea;
  margin-bottom: 0.65rem;
}

.showcase-description {
  color: #cce0ff;
  max-width: 920px;
  margin-bottom: 1rem;
}

.showcase-flow {
  margin: 1rem 0 1.15rem;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
}

.showcase-node {
  padding: 0.55rem 0.75rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(108, 161, 250, 0.5);
  background: linear-gradient(175deg, rgba(16, 28, 56, 0.78), rgba(8, 14, 28, 0.84));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.showcase-node strong {
  font-size: 0.88rem;
  color: #edf8ff;
}

.node-dot {
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: var(--color-accent-soft);
  box-shadow: 0 0 0 0 rgba(127, 245, 255, 0.6);
  animation: nodePulse 2.4s ease-out infinite;
}

.showcase-link {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(101, 180, 255, 0.3), rgba(127, 245, 255, 0.88), rgba(173, 122, 255, 0.7), rgba(101, 180, 255, 0.3));
  background-size: 180% 100%;
  animation: linkFlow 3.8s linear infinite;
}

.showcase-capabilities {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.cap-card {
  padding: 0.72rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.cap-card h4 {
  font-size: 0.95rem;
  color: #e8f4ff;
  margin-bottom: 0.4rem;
}

.cap-card p {
  font-size: 0.84rem;
  color: #b7cdec;
  min-height: 2.6rem;
  margin-bottom: 0.5rem;
}

.cap-status {
  display: inline-flex;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(112, 180, 255, 0.52);
  background: rgba(9, 18, 36, 0.72);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.09em;
  color: #d0e8ff;
}

.cap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(132, 219, 255, 0.8);
  box-shadow: 0 16px 30px -16px rgba(18, 39, 79, 0.86), 0 0 22px rgba(80, 190, 255, 0.22);
}

.showcase-console {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 0.9rem;
}

.console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.console-row span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #9fc0ea;
}

.console-row strong {
  font-size: 0.84rem;
  color: #72ffca;
  text-shadow: 0 0 18px rgba(71, 255, 194, 0.32);
}

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

.console-grid div {
  border: 1px solid rgba(104, 151, 240, 0.42);
  border-radius: 0.65rem;
  background: rgba(8, 15, 32, 0.72);
  padding: 0.48rem 0.55rem;
}

.console-grid span {
  display: block;
  font-size: 0.7rem;
  color: #9db8df;
  margin-bottom: 0.2rem;
}

.console-grid strong {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: #e8f5ff;
}

.console-version {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #9db8df;
  font-family: var(--font-mono);
}

.showcase-cta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Contact */
.contact {
  background: linear-gradient(180deg, rgba(8, 14, 29, 0.84), rgba(5, 10, 20, 0.9));
}

.contact-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.55rem;
}

.contact-intro {
  text-align: center;
  color: #b8cdf0;
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: #d8e9ff;
  font-size: 0.88rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.78rem 0.86rem;
  border: 1px solid rgba(102, 149, 235, 0.46);
  border-radius: 0.62rem;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: #edf6ff;
  background: linear-gradient(175deg, rgba(7, 13, 26, 0.88), rgba(12, 20, 37, 0.86));
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(131, 228, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(70, 170, 255, 0.2), 0 0 20px rgba(70, 170, 255, 0.22);
  background: linear-gradient(175deg, rgba(9, 15, 29, 0.94), rgba(14, 25, 47, 0.9));
}

.contact-submit {
  width: 100%;
}

.contact-alt {
  text-align: center;
  margin-top: 1.2rem;
  color: var(--text-muted);
}

/* WeChat Modal */
.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.wechat-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wechat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 17, 0.72);
  backdrop-filter: blur(9px);
}

.wechat-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  padding: 1.2rem;
  transform: translateY(10px) scale(0.97);
  transition: transform 280ms ease;
}

.wechat-modal.is-open .wechat-modal__panel {
  transform: translateY(0) scale(1);
}

.wechat-modal__panel:hover {
  transform: translateY(0) scale(1);
}

.wechat-modal__close {
  position: absolute;
  top: 0.68rem;
  right: 0.68rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(115, 172, 255, 0.52);
  border-radius: 0.58rem;
  background: linear-gradient(175deg, rgba(14, 24, 47, 0.9), rgba(8, 14, 28, 0.92));
  color: #d6e7ff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wechat-modal__close:hover {
  border-color: rgba(141, 225, 255, 0.9);
  color: #f7fcff;
  box-shadow: 0 0 20px rgba(88, 196, 255, 0.22);
}

.wechat-modal__hint {
  color: #b9cff3;
  margin-bottom: 0.75rem;
}

.wechat-qr-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.9rem;
  padding: 0.78rem;
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.96), rgba(228, 240, 255, 0.96));
  border: 1px solid rgba(117, 173, 255, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wechat-qr-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0.58rem;
  object-fit: contain;
  object-position: center center;
  background: #fff;
}

.wechat-qr-fallback {
  color: #1f3f66;
  font-size: 0.9rem;
  margin: 0;
}

/* Footer */
.footer {
  position: relative;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.9), rgba(3, 6, 13, 0.98));
  border-top: 1px solid rgba(85, 129, 215, 0.25);
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
}

.footer-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.footer-line {
  width: min(460px, 92%);
  height: 1px;
  margin: 0 auto 1.1rem;
  background: linear-gradient(90deg, transparent, rgba(116, 194, 255, 0.66), transparent);
  animation: linePulse 5.2s ease-in-out infinite;
}

.footer h3 {
  margin-bottom: 0.7rem;
}

.footer p {
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 1.15rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.2rem 0;
  list-style: none;
}

.social-links a {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.68rem;
  border: 1px solid rgba(97, 145, 232, 0.45);
  background: linear-gradient(176deg, rgba(17, 29, 56, 0.75), rgba(8, 15, 30, 0.82));
  color: #d7e8ff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(128, 221, 255, 0.9);
  color: #f5fbff;
  box-shadow: 0 0 22px rgba(71, 183, 255, 0.25);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* Animation Keyframes */
@keyframes glowDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(2.2vw, -1.6vw, 0);
  }
}

@keyframes bgPulse {
  0%,
  100% {
    opacity: 0.36;
  }
  50% {
    opacity: 0.58;
  }
}

@keyframes heroBandA {
  from {
    transform: translateX(-14%);
    opacity: 0.25;
  }
  50% {
    opacity: 0.65;
  }
  to {
    transform: translateX(14%);
    opacity: 0.25;
  }
}

@keyframes heroBandB {
  from {
    transform: translateX(13%);
  }
  to {
    transform: translateX(-13%);
  }
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 255, 180, 0.56);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 255, 180, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 255, 180, 0);
  }
}

@keyframes titleGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes titleSweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes panelSweep {
  from {
    transform: translateX(-130%);
  }
  to {
    transform: translateX(130%);
  }
}

@keyframes borderOrbit {
  to {
    transform: rotate(1turn);
  }
}

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

@keyframes linePulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes nodePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(127, 245, 255, 0.58);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(127, 245, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(127, 245, 255, 0);
  }
}

@keyframes linkFlow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .showcase-link {
    display: none;
  }

  .showcase-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 var(--spacing-lg);
  }

  .nav-right {
    gap: 0.7rem;
  }

  .nav-links {
    gap: 0.95rem;
  }

  .nav-actions {
    gap: 0.38rem;
  }

  .hero-content {
    padding: 1.45rem 1.35rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .nav-links {
    display: none;
  }

  .nav-right {
    margin-left: auto;
  }

  .lang-btn {
    min-width: 1.9rem;
    height: 1.6rem;
  }

  .nav-wechat,
  .theme-btn {
    min-width: 3.9rem;
    padding: 0.45rem 0.72rem;
    font-size: 0.72rem;
  }

  .hero {
    min-height: auto;
    padding: 88px 0 50px;
  }

  .hero-title-sub {
    letter-spacing: 0.08em;
    font-size: 0.74rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

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

  .showcase-flow,
  .showcase-capabilities,
  .console-grid {
    grid-template-columns: 1fr;
  }

  .showcase-node {
    justify-content: flex-start;
  }

  .bg-glow {
    opacity: 0.14;
  }

  .bg-pulse {
    opacity: 0.26;
  }

  .wechat-modal__panel {
    width: min(420px, 94vw);
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .bg-pulse,
  .bg-glow,
  .hero-stream,
  .panel-card::before,
  .panel-card::after,
  .hero-title-main::after {
    display: none;
  }
}
