:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --dark: #0f172a;
  --gray: #64748b;
  --light: #f1f5f9;
  --bg: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
}

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

svg.ic {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}

.feature-card .icon,
.contact-list .ico {
  color: var(--primary);
}

.feature-card .icon svg.ic,
.ai-card .icon svg.ic {
  width: 28px;
  height: 28px;
}

.ai-card .icon {
  color: #a5b4fc;
}

.product-card h3 svg.ic {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.contact-list .ico svg.ic {
  width: 22px;
  height: 22px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 15px;
  color: var(--gray);
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
  top: -150px;
  right: -120px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero p {
  font-size: 17px;
  color: #cbd5e1;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #e2e8f0;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.hero-terminal {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 24px;
  font-family: "Consolas", "Menlo", monospace;
  font-size: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.hero-terminal .bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-terminal .bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f43f5e;
}

.hero-terminal .bar span:nth-child(2) {
  background: #f59e0b;
}

.hero-terminal .bar span:nth-child(3) {
  background: #10b981;
}

.hero-terminal code {
  color: #7dd3fc;
}

.hero-terminal code .c {
  color: #94a3b8;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

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

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: #1e293b;
}

/* ---------- Sections ---------- */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--light);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-head .tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--gray);
  font-size: 16px;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 32px 28px;
  transition: all 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.4);
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: rgba(37, 99, 235, 0.1);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--gray);
  font-size: 14px;
}

/* ---------- Products / business ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.product-card .body {
  padding: 28px;
  flex: 1;
}

.product-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-card p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 18px;
}

.product-card ul {
  list-style: none;
}

.product-card ul li {
  font-size: 14px;
  color: var(--dark);
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
}

.product-card ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- AI Section ---------- */
.ai-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #1e1b4b 100%);
  color: #fff;
}

.ai-section .section-head h2 {
  color: #fff;
}

.ai-section .section-head p {
  color: #94a3b8;
}

.ai-section .tag {
  background: rgba(129, 140, 248, 0.15);
  color: #a5b4fc;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.ai-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 32px 28px;
  transition: all 0.25s;
}

.ai-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
}

.ai-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: rgba(129, 140, 248, 0.15);
}

.ai-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}

.ai-card p {
  color: #94a3b8;
  font-size: 14px;
}

.ai-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ai-tech span {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
}

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

.stat h3 {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
}

.stat p {
  color: var(--gray);
  margin-top: 6px;
  font-size: 15px;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.process-step {
  position: relative;
  padding-top: 48px;
}

.process-step .num {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 42px;
  font-weight: 800;
  color: rgba(37, 99, 235, 0.18);
  line-height: 1;
}

.process-step h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--gray);
  font-size: 14px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 28px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  color: var(--dark);
  font-size: 15px;
}

.contact-list .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--light);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.form-msg {
  display: none;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-msg.success {
  display: block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.form-msg.error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 60px 0 0;
}

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

.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-grid p {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-grid a {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
  transition: color 0.2s;
}

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

.footer-bottom .sep {
  margin: 0 10px;
  color: #475569;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-grid,
  .stats,
  .process-grid,
  .ai-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid #e2e8f0;
    transform: translateY(-120%);
    transition: transform 0.25s;
    box-shadow: 0 20px 30px rgba(15, 23, 42, 0.08);
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .stats,
  .process-grid,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .section-head h2 {
    font-size: 27px;
  }

  .hero {
    padding: 70px 0;
  }
}
