:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #1b1f2a;
  --muted: #5f6b7a;
  --accent: #1f4fe0;
  --accent-strong: #1438b0;
  --accent-soft: rgba(31, 79, 224, 0.12);
  --border: #dde2ea;
  --shadow: 0 16px 36px rgba(14, 28, 56, 0.08);
  --radius: 14px;
  --code: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.98rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 10px;
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.eyebrow {
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  margin: 0 0 16px;
}

.subtext {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border-radius: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #3a6bff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(31, 79, 224, 0.2);
}

.btn.ghost {
  background: #fff;
  color: var(--accent-strong);
  border-color: var(--border);
}

.btn:hover {
  transform: translateY(-1px);
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  margin-top: 18px;
}

.hero-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}

.hero-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.section {
  padding: 64px 0;
}

.section.highlight {
  background: #f7f9fd;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  letter-spacing: 0.4px;
}

.section-title p {
  margin: 0 0 28px;
  color: var(--muted);
}

.about-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 12px 26px rgba(20, 33, 61, 0.06);
  position: relative;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 3px;
  height: 36px;
  background: var(--accent);
  border-radius: 999px;
}

.card .tag {
  display: inline-block;
  background: rgba(31, 79, 224, 0.08);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card .muted {
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(20, 33, 61, 0.06);
}

.metric-card h3 {
  margin: 0;
  font-size: 2rem;
  color: var(--accent-strong);
}

.metric-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.client-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
}

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.flow-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.flow-step span {
  color: var(--accent);
  font-weight: 700;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-strong);
  border: 1px solid rgba(31, 79, 224, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 79, 224, 0.06);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--code);
}

.details-toggle {
  align-self: flex-start;
  border: 1px solid rgba(31, 79, 224, 0.2);
  background: #f6f8ff;
  color: var(--accent-strong);
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.details-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(31, 79, 224, 0.18);
}

.project-details {
  background: #f5f7fc;
  border-radius: 12px;
  border: 1px solid rgba(31, 79, 224, 0.15);
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-details ul {
  padding-left: 18px;
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border);
}

.stack {
  margin-top: 32px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 79, 224, 0.16);
  background: #fff;
  color: var(--muted);
  font-family: var(--code);
}

.resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.resource-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #e9efff, #f7f9ff);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid rgba(31, 79, 224, 0.18);
  margin-bottom: 24px;
}

.cta-banner h3 {
  margin: 0 0 6px;
}

.cta-banner p {
  margin: 0;
  color: var(--muted);
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.site-footer {
  padding: 24px 0 40px;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    right: 4vw;
    top: 64px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 12px;
    flex-direction: column;
    gap: 12px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 48px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
