:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --panel: #ffffff;
  --soft: #f6f8fb;
  --primary: #2563eb;
  --primary-2: #06b6d4;
  --accent: #16a34a;
  --warning: #f59e0b;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.10), transparent 30rem),
    radial-gradient(circle at 90% 8%, rgba(6, 182, 212, 0.10), transparent 28rem),
    #fff;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(228, 231, 236, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.filter {
  border-radius: 999px;
  padding: 10px 14px;
  color: #344054;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.filter:hover,
.filter.active {
  color: var(--primary);
  background: #eff6ff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 4vw, 56px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  min-height: calc(100vh - 72px);
}

.hero h1,
.section-heading h2,
.about-layout h2,
.cta h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.button.ghost {
  color: var(--primary);
  background: #fff;
  border-color: #bfdbfe;
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
  margin: 0;
}

.metrics div,
.feature-strip article,
.product-card,
.project-card,
.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.metrics div {
  padding: 16px;
}

.metrics dt {
  color: var(--primary);
  font-size: 28px;
  font-weight: 900;
}

.metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 36px;
}

.feature-strip article {
  padding: 24px;
}

.feature-strip span {
  color: var(--primary);
  font-weight: 900;
}

.feature-strip h2,
.product-card h3,
.project-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.feature-strip p,
.product-card p,
.project-card p,
.about-layout p,
.profile-card p,
.cta p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2,
.about-layout h2,
.cta h2 {
  font-size: clamp(34px, 5vw, 56px);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter {
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.card-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card,
.project-card {
  overflow: hidden;
}

.product-card img,
.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--soft);
}

.card-body {
  padding: 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag {
  border-radius: 999px;
  padding: 5px 9px;
  color: #175cd3;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.card-link {
  display: inline-flex;
  margin-top: 4px;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.muted {
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.project-card {
  padding: 22px;
}

.project-card img {
  margin: -22px -22px 18px;
  width: calc(100% + 44px);
  max-width: none;
}

.project-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 42px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.check-list span {
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px;
  color: #166534;
  background: #f0fdf4;
  font-weight: 800;
}

.profile-card {
  padding: 18px;
}

.profile-card img {
  border-radius: 8px;
  background: var(--soft);
}

.cta {
  color: #fff;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(37, 99, 235, 0.9)),
    url("./images/hero-ai.svg") center / cover;
}

.cta .eyebrow,
.cta p {
  color: rgba(255, 255, 255, 0.86);
}

.cta p {
  max-width: 680px;
  margin: 18px auto 28px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 24px;
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 12px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-panel img {
  width: 100%;
  border-radius: 8px;
  background: var(--soft);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

#modalFeatures {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .about-layout,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .feature-strip,
  .card-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .metrics,
  .check-list {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

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