/* Hexi Labs — 官网首页 */
:root {
  --bg: #0c0f14;
  --bg-elevated: #131822;
  --text: #e8ecf1;
  --text-muted: #8b95a8;
  --accent: #3d8bfd;
  --accent-soft: rgba(61, 139, 253, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(12px);
}

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

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0;
  max-width: 36em;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.hero-gradient {
  position: absolute;
  inset: -30% 20% auto -20%;
  height: 70%;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    var(--accent-soft),
    transparent 70%
  );
  pointer-events: none;
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 4.5rem) 0;
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-text {
  margin: 0;
  max-width: 42em;
  color: var(--text-muted);
}

.section-text + .section-text,
.section-text + .contact-email {
  margin-top: 1rem;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.875rem;
}

/* Products placeholder */
.products {
  background: var(--bg-elevated);
}

.product-placeholder {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 280px;
  padding: 1.75rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.product-card-icon {
  font-size: 1.25rem;
  color: var(--accent);
  opacity: 0.8;
}

.product-card-label {
  font-weight: 600;
  color: var(--text);
}

.product-card-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Contact */
.contact-inner {
  padding-bottom: 0.5rem;
}

.contact-email a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-company {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

.footer-copy,
.footer-icp {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-icp a {
  color: var(--text-muted);
  text-decoration: none;
}

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

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
  }

  .footer-icp {
    text-align: right;
    max-width: 20rem;
  }
}
