:root {
  --bg: #030014;
  --bg-2: #05031a;
  --bg-3: #0a081f;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.11);
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --accent: #22d3ee;
  --accent-2: #8b5cf6;
  --accent-3: #6366f1;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --gradient-violet: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --gradient-cyan: linear-gradient(135deg, #22d3ee 0%, #2dd4bf 100%);
  --gradient-pink: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 999px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.25), 0 0 16px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.35), 0 0 24px rgba(99, 102, 241, 0.35);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(4, 3, 14, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(4, 3, 14, 0.82);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

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

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  border-radius: var(--radius-xl);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 0 7rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(139, 92, 246, 0.28) 0%, rgba(99, 102, 241, 0.12) 35%, rgba(3, 0, 20, 1) 72%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
}

.aurora-1 {
  width: 600px;
  height: 600px;
  background: rgba(139, 92, 246, 0.45);
  top: -120px;
  left: 10%;
  animation: float 14s ease-in-out infinite;
}

.aurora-2 {
  width: 480px;
  height: 480px;
  background: rgba(34, 211, 238, 0.32);
  top: 20%;
  right: 5%;
  animation: float 16s ease-in-out infinite reverse;
}

.aurora-3 {
  width: 360px;
  height: 360px;
  background: rgba(99, 102, 241, 0.4);
  bottom: 5%;
  left: 30%;
  animation: float 18s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #a5f3fc;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #fff;
  text-shadow: 0 0 60px rgba(139, 92, 246, 0.5), 0 0 30px rgba(34, 211, 238, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust {
  font-size: 0.85rem;
  color: var(--dim);
}

/* Sections */
.section {
  padding: 7rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
}

/* Services */
.services {
  background: var(--bg-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.18);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: #fff;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.icon-web { background: var(--gradient-violet); }
.icon-mobile { background: var(--gradient-cyan); }
.icon-cloud { background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%); }
.icon-ai { background: var(--gradient-pink); }
.icon-chain { background: linear-gradient(135deg, #14b8a6 0%, #22d3ee 100%); }
.icon-security { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Tech */
.tech {
  background: var(--bg-3);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.tag {
  display: inline-flex;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(34, 211, 238, 0.35);
  color: #fff;
  transform: translateY(-2px);
}

/* Cases */
.cases {
  background: var(--bg-2);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.case-thumb {
  height: 190px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 500;
}

.thumb-1 { background: var(--gradient-violet); }
.thumb-2 { background: var(--gradient-cyan); }
.thumb-3 { background: var(--gradient-pink); }

.case-body {
  padding: 1.5rem;
}

.case-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.case-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.case-body p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.case-link {
  font-weight: 700;
  color: var(--accent);
  transition: color 0.2s ease;
}

.case-link:hover {
  color: #67e8f9;
}

/* Metrics */
.metrics {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, rgba(3, 0, 20, 1) 100%);
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-number {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #bae6fd 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Process */
.process {
  background: var(--bg-3);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  background: var(--surface-hover);
}

.step-number {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.process-step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #fff;
}

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

/* CTA */
.cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(34, 211, 238, 0.12) 100%);
  padding: 7rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.25), transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}

.cta p {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: #02010c;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-desc {
  color: var(--dim);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--dim);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom a {
  color: var(--dim);
  transition: color 0.2s ease;
}

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

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .services-grid,
  .cases-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    width: 260px;
    height: calc(100vh - 72px);
    background: rgba(4, 3, 14, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .services-grid,
  .cases-grid,
  .process-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
    gap: 1.5rem;
  }

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

@media (max-width: 480px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero {
    padding: 8rem 0 5rem;
  }

  .btn-lg {
    width: 100%;
  }
}
