/* ============================================================
   Design System — Tech-Forward B2B Corporate Website
   Industries: Pharmaceutical + Power
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary palette */
  --bg-deep: #060d1a;
  --bg-primary: #0a1628;
  --bg-secondary: #0d1f3c;
  --bg-card: rgba(15, 30, 60, 0.65);
  --bg-card-hover: rgba(20, 40, 80, 0.8);

  /* Accent */
  --accent: #2b7fff;
  --accent-light: #5a9fff;
  --accent-glow: rgba(43, 127, 255, 0.25);
  --cyan: #00d4aa;
  --cyan-glow: rgba(0, 212, 170, 0.2);
  --orange: #f59e0b;
  --green: #10b981;
  --red: #ef4444;

  /* Text */
  --text-primary: #e8edf5;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-heading: #ffffff;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-active: rgba(43, 127, 255, 0.4);

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-active);
  --shadow-glow: 0 0 60px rgba(43, 127, 255, 0.08);

  /* Sizing */
  --nav-height: 72px;
  --max-width: 1280px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration: 300ms;
  --duration-slow: 500ms;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(88, 118, 255, 0.22), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(0, 212, 170, 0.12), transparent 20%),
    radial-gradient(circle at 76% 72%, rgba(43, 127, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #030711 0%, #06101d 34%, #071427 68%, #040a14 100%);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Galaxy background layers */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 82% 60% at 50% -10%, rgba(43, 127, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 50% at 82% 78%, rgba(0, 212, 170, 0.06), transparent),
    radial-gradient(ellipse 34% 28% at 18% 74%, rgba(122, 106, 255, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.88) 0 1px, transparent 1.8px),
    radial-gradient(circle at 18% 34%, rgba(122, 203, 255, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 44% 46%, rgba(114, 240, 209, 0.64) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 16%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.8px),
    radial-gradient(circle at 68% 38%, rgba(122, 203, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 68%, rgba(255, 255, 255, 0.74) 0 1px, transparent 1.8px),
    radial-gradient(circle at 84% 24%, rgba(114, 240, 209, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 52%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.8px),
    linear-gradient(rgba(43, 127, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 127, 255, 0.03) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    auto,
    auto,
    auto,
    auto,
    auto,
    auto,
    auto,
    72px 72px,
    72px 72px;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

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

ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 48px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(8, 18, 36, 0.9), rgba(9, 20, 40, 0.84)),
    radial-gradient(circle at 18% 20%, rgba(88, 118, 255, 0.08), transparent 26%);
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.92), rgba(10, 24, 46, 0.86)),
    radial-gradient(circle at 82% 24%, rgba(0, 212, 170, 0.07), transparent 26%);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(6, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration) var(--ease-out);
}

.nav.scrolled {
  background: rgba(6, 13, 26, 0.95);
  border-bottom-color: var(--border-card);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
  min-width: 0;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.28), transparent 20%),
    linear-gradient(180deg, #0e2144 0%, #12315f 52%, #0b1831 100%);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(124, 182, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(43, 127, 255, 0.16);
}

.nav-logo-icon::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 11px;
  height: 17px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, #f7fbff 0 3px, #8bcdf7 3px 4px, transparent 4px),
    linear-gradient(180deg, transparent 0 6px, #0f2445 6px 11px, transparent 11px),
    linear-gradient(180deg, #d8f2ff 0%, #92d5ff 100%);
  clip-path: polygon(50% 0, 100% 18%, 84% 100%, 16% 100%, 0 18%);
  box-shadow:
    0 0 10px rgba(130, 214, 255, 0.25),
    0 5px 0 -3px rgba(7, 16, 32, 0.9);
}

.nav-logo-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 9px;
  width: 24px;
  height: 14px;
  transform: translateX(-2px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(132, 214, 255, 0.82) 42%, rgba(0, 212, 170, 0.15) 76%, transparent 100%);
  clip-path: polygon(0 50%, 26% 12%, 100% 0, 100% 100%, 26% 88%);
  opacity: 0.88;
  filter: blur(0.2px);
  box-shadow: 0 0 14px rgba(132, 214, 255, 0.34);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link .arrow {
  font-size: 0.6rem;
  transition: transform var(--duration-fast) var(--ease-out);
}

.nav-item:hover .nav-link .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(13, 31, 60, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease-out);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.nav-dropdown a:hover {
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--duration) var(--ease-out);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1a5fcc);
  color: #fff;
  box-shadow: 0 4px 16px rgba(43, 127, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(43, 127, 255, 0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(43, 127, 255, 0.08);
  color: var(--text-heading);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-light);
  padding: 8px 16px;
}

.btn-ghost:hover {
  background: rgba(43, 127, 255, 0.08);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -20%, rgba(43, 127, 255, 0.15), transparent),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(0, 212, 170, 0.09), transparent),
    linear-gradient(180deg, rgba(4, 9, 21, 0.12), rgba(4, 9, 21, 0.34));
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.55;
  pointer-events: none;
  animation: orb-float 11s ease-in-out infinite;
}

.hero-orb-left {
  width: 360px;
  height: 360px;
  left: -120px;
  top: 14%;
  background: radial-gradient(circle, rgba(43, 127, 255, 0.24), transparent 68%);
}

.hero-orb-right {
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: 8%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.18), transparent 70%);
  animation-delay: -4s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(43, 127, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 127, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 30%, transparent 70%);
  animation: grid-drift 18s linear infinite;
}

.hero-starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.85;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.8px),
    radial-gradient(circle at 22% 62%, rgba(114, 240, 209, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 36% 28%, rgba(199, 221, 255, 0.85) 0 1px, transparent 1.8px),
    radial-gradient(circle at 48% 14%, rgba(255, 255, 255, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 68%, rgba(43, 127, 255, 0.88) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.8px),
    radial-gradient(circle at 84% 42%, rgba(114, 240, 209, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 16%, rgba(255, 255, 255, 0.92) 0 1.1px, transparent 2px);
  animation: star-pulse 9s ease-in-out infinite;
}


.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - var(--nav-height));
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(43, 127, 255, 0.1);
  border: 1px solid rgba(43, 127, 255, 0.2);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--accent-light);
  margin-bottom: 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-kicker {
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232, 237, 245, 0.72);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #c7ddff 45%, #72f0d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-signal-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.signal-card {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.signal-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.signal-card strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-visual-shell {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(11, 25, 51, 0.9), rgba(6, 17, 34, 0.82)),
    rgba(7, 17, 35, 0.75);
  border: 1px solid rgba(120, 171, 255, 0.18);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(43, 127, 255, 0.06),
    0 0 120px rgba(43, 127, 255, 0.08);
  overflow: hidden;
}

.hero-visual-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 45%, transparent 65%),
    linear-gradient(180deg, rgba(43, 127, 255, 0.08), transparent 50%);
  transform: translateX(-65%);
  animation: shell-sheen 7s linear infinite;
}

.hero-status,
.hero-metrics,
.hero-core,
.hero-beam {
  position: relative;
  z-index: 1;
}

.hero-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.12);
  color: #8bf6da;
  border: 1px solid rgba(0, 212, 170, 0.18);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(0, 212, 170, 0.12);
  animation: pulse-dot 2s infinite;
}

.status-meta {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 237, 245, 0.66);
}

.hero-core {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-ring,
.core-pulse,
.core-node {
  position: absolute;
  border-radius: 50%;
}

.core-ring {
  border: 1px solid rgba(96, 157, 255, 0.18);
}

.ring-outer {
  width: 320px;
  height: 320px;
  animation: rotate-slow 22s linear infinite;
}

.ring-middle {
  width: 238px;
  height: 238px;
  border-style: dashed;
  animation: rotate-reverse 16s linear infinite;
}

.ring-inner {
  width: 154px;
  height: 154px;
  border-color: rgba(0, 212, 170, 0.26);
}

.core-pulse {
  width: 112px;
  height: 112px;
  background: radial-gradient(circle, rgba(43, 127, 255, 0.35), rgba(43, 127, 255, 0.08) 62%, transparent 72%);
  animation: pulse-core 3.8s ease-in-out infinite;
}

.core-node {
  width: 94px;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(71, 128, 255, 0.92), rgba(0, 212, 170, 0.9));
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 0 40px rgba(43, 127, 255, 0.35);
}

.orbit-card {
  position: absolute;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(7, 19, 38, 0.78);
  border: 1px solid rgba(130, 181, 255, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.orbit-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.orbit-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.orbit-card-top {
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  animation: float-card-top 6s ease-in-out infinite;
}

.orbit-card-right {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  animation: float-card-right 7s ease-in-out infinite -1.8s;
}

.orbit-card-bottom {
  bottom: 24px;
  left: 20%;
  animation: float-card-bottom 6.5s ease-in-out infinite -3.2s;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.metric-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-card strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 1.55rem;
  line-height: 1;
  color: #fff;
}

.metric-label,
.metric-desc {
  display: block;
}

.metric-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.metric-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.hero-beam {
  position: absolute;
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 127, 255, 0.7), transparent);
  opacity: 0.55;
}

.hero-beam-a {
  top: 30%;
  left: -40px;
  transform: rotate(18deg);
}

.hero-beam-b {
  right: -28px;
  bottom: 26%;
  transform: rotate(-16deg);
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.7), transparent);
}

/* Floating tech particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(43, 127, 255, 0.95), rgba(0, 212, 170, 0.95));
  box-shadow: 0 0 14px rgba(43, 127, 255, 0.28);
  opacity: 0.15;
  animation: float-up linear infinite;
}

@keyframes float-up {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.2; }
  90% { opacity: 0.1; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

@keyframes star-pulse {
  0%, 100% {
    opacity: 0.72;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.96;
    transform: translate3d(0, -6px, 0);
  }
}

.tech-marquee-section {
  position: relative;
  z-index: 1;
  margin-top: -34px;
  padding-bottom: 22px;
}

.tech-marquee {
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  overflow: hidden;
  padding: 0 24px;
}

.tech-marquee-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: marquee-run 24s linear infinite;
}

.tech-marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(8, 18, 36, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(232, 237, 245, 0.82);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.tech-marquee-track span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  box-shadow: 0 0 12px rgba(43, 127, 255, 0.28);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-label {
  justify-content: center;
}

.section-header .section-label::before {
  display: none;
}

.section-header .section-subtitle {
  margin: 0 auto 0;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.card::after,
.product-card::after,
.case-card::after,
.news-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 127, 255, 0.16), transparent 68%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
  pointer-events: none;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after,
.product-card:hover::after,
.case-card:hover::after,
.news-card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: rgba(43, 127, 255, 0.1);
  border: 1px solid rgba(43, 127, 255, 0.15);
  flex-shrink: 0;
}

.card-icon.cyan {
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.15);
}

.card-icon.orange {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.15);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --- Product Card --- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.product-card .product-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(43, 127, 255, 0.12), rgba(0, 212, 170, 0.06));
  border: 1px solid rgba(43, 127, 255, 0.15);
}

.product-card h3 {
  margin-bottom: 12px;
}

.product-card .desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.product-card .features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-card .features .tag {
  font-size: 0.73rem;
}

.product-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-light);
}

.product-card .card-link .arrow-icon {
  transition: transform var(--duration-fast) var(--ease-out);
}

.product-card:hover .card-link .arrow-icon {
  transform: translateX(4px);
}

/* --- Solution / Industry Tabs --- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.tab-btn.active {
  background: rgba(43, 127, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent-light);
}

.tab-content { display: none; }
.tab-content.active {
  display: block;
  animation: tab-fade 0.45s var(--ease-out);
}

/* --- Flow / Process --- */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.flow-node {
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: normal;
  color: var(--text-primary);
}

.flow-node.highlight {
  background: rgba(43, 127, 255, 0.1);
  border-color: var(--border-active);
}

.flow-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  margin: 0 8px;
  font-weight: 700;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* --- Case Card --- */
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease-out);
  position: relative;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.case-image {
  height: 180px;
  background: linear-gradient(135deg, rgba(43, 127, 255, 0.15), rgba(0, 212, 170, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--text-muted);
}

.case-body {
  padding: 24px;
}

.case-body .industry-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(43, 127, 255, 0.1);
  border-radius: 100px;
  font-size: 0.73rem;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.case-body h4 {
  margin-bottom: 8px;
}

.case-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.case-metrics {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.case-metric .val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-light);
}

.case-metric .lbl {
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* --- Tech Architecture Stack --- */
.arch-stack {
  max-width: 700px;
  margin: 0 auto;
}

.arch-layer {
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.arch-layer .layer-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-light);
  min-width: 70px;
}

.arch-layer .layer-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* --- News Card --- */
.news-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--duration) var(--ease-out);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.news-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  color: var(--text-primary);
}

.news-card .news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-card .news-category {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(43, 127, 255, 0.1);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.news-card h4 {
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--red);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: rgba(43, 127, 255, 0.05);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--text-heading);
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(120, 171, 255, 0.22);
  border-radius: 18px;
  background: rgba(8, 18, 36, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text-primary);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.92);
  transition: transform var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out), visibility var(--duration) var(--ease-out), border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  z-index: 1100;
}

.back-to-top::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 55%);
  opacity: 0.75;
  pointer-events: none;
}

.back-to-top .arrow {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 700;
  transform: translateY(-1px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  border-color: rgba(43, 127, 255, 0.45);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(43, 127, 255, 0.18);
  transform: translateY(-3px);
}

/* --- Page Banner (inner pages) --- */
.page-banner {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  background:
    linear-gradient(180deg, rgba(7, 16, 32, 0.96), rgba(8, 18, 36, 0.88)),
    radial-gradient(circle at 50% 18%, rgba(88, 118, 255, 0.12), transparent 28%);
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(43, 127, 255, 0.08), transparent),
    radial-gradient(ellipse 22% 18% at 78% 24%, rgba(0, 212, 170, 0.08), transparent);
  pointer-events: none;
}

.page-banner h1 {
  margin-bottom: 16px;
}

.page-banner p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--text-heading); }
.breadcrumb .sep { color: var(--text-muted); }

/* --- Content Layout (inner pages) --- */
.content-section {
  padding: 80px 0;
  position: relative;
}

.content-section.alt {
  background:
    linear-gradient(180deg, rgba(8, 18, 36, 0.9), rgba(8, 18, 36, 0.82)),
    radial-gradient(circle at 80% 24%, rgba(88, 118, 255, 0.08), transparent 24%);
}

.content-block {
  max-width: 860px;
  margin: 0 auto;
}

.content-block h2 {
  margin-bottom: 24px;
}

.content-block h3 {
  margin: 40px 0 16px;
}

.content-block p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* Feature grid for product pages */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.feature-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
}

.feature-item .feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(43, 127, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Pain point list */
.pain-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: var(--radius);
}

.pain-item .pain-icon {
  color: var(--red);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pain-item h4 {
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.pain-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Value list */
.value-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.value-item .check {
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 0;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(9, 21, 40, 0.94), rgba(10, 24, 46, 0.88)),
    radial-gradient(circle at 50% 50%, rgba(88, 118, 255, 0.08), transparent 30%);
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(43, 127, 255, 0.08), transparent),
    radial-gradient(ellipse 24% 20% at 20% 34%, rgba(0, 212, 170, 0.05), transparent);
  pointer-events: none;
}

.cta-banner h2 {
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.interactive-panel {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 180ms ease-out;
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.48s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.56s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.64s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.72s; opacity: 1; transform: translateY(0); }

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes orb-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -24px, 0) scale(1.04); }
}

@keyframes grid-drift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, 10px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes shell-sheen {
  0% { transform: translateX(-65%); }
  100% { transform: translateX(150%); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulse-core {
  0%, 100% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.1); opacity: 0.45; }
}

@keyframes float-card-top {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes float-card-right {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(-10px); }
}

@keyframes float-card-bottom {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes marquee-run {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes tab-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .pain-list { grid-template-columns: 1fr; }
  .value-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; padding: 60px 0 40px; }
  .hero-content { max-width: none; }
  .hero-signal-bar,
  .hero-metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .section-subtitle { font-size: 0.96rem; margin-bottom: 28px; }
  .page-banner { padding: 116px 0 56px; }
  .page-banner p { font-size: 0.96rem; }
  .content-section { padding: 56px 0; }
  .card,
  .product-card,
  .news-card,
  .case-body,
  .feature-item,
  .arch-layer { padding-left: 20px; padding-right: 20px; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: rgba(6, 13, 26, 0.98);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform var(--duration) var(--ease-out);
    overflow-y: auto;
    gap: 0;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: none;
  }

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

  .nav-toggle { display: flex; }

  .nav-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .nav-logo {
    gap: 8px;
    font-size: 1rem;
    max-width: calc(100vw - 88px);
  }

  .nav-logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .nav-dropdown a {
    white-space: normal;
    line-height: 1.5;
  }

  .hero { text-align: center; min-height: auto; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-layout { min-height: auto; }
  .hero-kicker { letter-spacing: 0.18em; }
  .hero-signal-bar,
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-core { height: 320px; }
  .ring-outer { width: 280px; height: 280px; }
  .ring-middle { width: 214px; height: 214px; }
  .orbit-card-right { right: 0; }
  .orbit-card-bottom { left: 10%; }
  .tech-marquee-section { margin-top: 0; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .flow { flex-direction: column; }
  .flow-step {
    width: 100%;
    justify-content: center;
  }
  .flow-node {
    width: min(100%, 340px);
    max-width: 100%;
    padding: 14px 18px;
    white-space: normal;
    line-height: 1.55;
  }
  .flow-arrow { transform: rotate(90deg); margin: 4px 0; }

  .tabs { gap: 6px; }
  .tab-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
    white-space: normal;
    line-height: 1.4;
  }

  .feature-item,
  .pain-item,
  .value-item {
    align-items: flex-start;
  }

  .footer {
    padding: 48px 0 28px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-visual-shell { padding: 20px; }
  .hero-core { height: 280px; }
  .ring-outer { width: 230px; height: 230px; }
  .ring-middle { width: 170px; height: 170px; }
  .ring-inner { width: 124px; height: 124px; }
  .core-node { width: 82px; height: 82px; font-size: 1.5rem; }
  .orbit-card {
    min-width: 96px;
    padding: 10px 12px;
  }
  .tech-marquee { padding: 0 16px; }
  .nav {
    height: 64px;
  }
  .nav-logo {
    font-size: 0.92rem;
    max-width: calc(100vw - 72px);
  }
  .nav-logo-icon {
    width: 28px;
    height: 28px;
  }
  .nav-links {
    top: 64px;
  }
  .page-banner {
    padding: 100px 0 44px;
  }
  .breadcrumb {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }
  .hero p,
  .section-subtitle,
  .page-banner p,
  .content-block p {
    font-size: 0.92rem;
  }
  .card,
  .product-card,
  .news-card,
  .case-body,
  .feature-item,
  .arch-layer {
    padding: 18px;
  }
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
  }
  .tab-btn {
    flex: 1 1 calc(50% - 6px);
  }
  .flow-node {
    width: 100%;
  }
  #form .form-row > .form-group[style*="align-items:flex-end"] {
    display: block !important;
  }
  #form .form-row > .form-group[style*="align-items:flex-end"] .btn {
    width: 100%;
  }
  .content-section .grid-2[style*="align-items:start"] {
    gap: 24px !important;
  }
  .content-section .grid-2[style*="align-items:start"] p[style*="margin-left:60px"] {
    margin-left: 0 !important;
  }
  .content-section .grid-2[style*="align-items:start"] div[style*="display:flex;align-items:center;gap:12px;margin-bottom:8px;"] {
    align-items: flex-start !important;
  }
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
}
