/* Design Brief: AI SaaS 落地页 — 现代深色流派
 * 底色 #08090a / 强调 #00ff88 / 字阶 1.2 / 控件 6px 卡片 12px
 */

:root {
  /* 色板 (tokens-and-type.md §3.3) */
  --bg: #08090a;
  --text: #e8e9ea;
  --text-secondary: rgba(232, 233, 234, 0.6);
  --accent: #00ff88;
  --accent-hover: #00e67a;
  --success: #10b981;
  --warning: #f59e0b;

  /* Alpha 阶梯 (tokens-and-type.md §3.2) */
  --border: rgba(255, 255, 255, 0.1);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface: rgba(255, 255, 255, 0.03);

  /* Typography (tokens-and-type.md §1) */
  --font-display: "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* 字阶 Minor Third 1.2, base 16px */
  --text-sm: 13px;
  --text-base: 16px;
  --text-lg: 19px;
  --text-xl: 23px;
  --text-2xl: 28px;
  --text-3xl: 34px;
  --text-hero: 56px;

  /* 圆角双峰 (tokens-and-type.md §5.1) */
  --radius-control: 6px;
  --radius-card: 12px;

  /* 间距 4px 基数 (tokens-and-type.md §4.1) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Motion (motion.md §1.2, §2.1) */
  --ease-main: cubic-bezier(0.23, 1.04, 0.32, 1);
  --duration-instant: 150ms;
  --duration-ui: 300ms;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* === Header (layout-patterns §4: logo left, links right 72%) === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 10, 0.8);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--duration-instant) var(--ease-main);
}

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

/* === Buttons (控件圆角 6px) === */
.button {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-control);
  border: none;
  cursor: pointer;
  transition: all var(--duration-instant) var(--ease-main);
}

.button-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button-secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-button {
  background: var(--accent);
  color: var(--bg) !important;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-control);
  font-weight: 600;
}

/* === Hero (layout-patterns §1: centered 30%) === */
.hero {
  padding: var(--space-24) 0;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  /* 强调色只用于文字的高亮词，不整句染色 */
}

.hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 auto var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.hero-trust {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* === Features (layout-patterns §2: split image right 40%) === */
.features {
  padding: var(--space-24) 0;
  border-top: 1px solid var(--border);
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-16) 0;
}

.feature-item.reverse .feature-text {
  order: 2;
}

.feature-item.reverse .feature-visual {
  order: 1;
}

.feature-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--space-4);
}

.feature-text p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
}

.feature-visual {
  aspect-ratio: 4 / 3;
}

.mockup {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* === Pricing (layout-patterns §3: 2-tier 36%) === */
.pricing {
  padding: var(--space-24) 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  margin-bottom: var(--space-16);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.pricing-card.recommended {
  border-color: var(--accent);
  border-width: 2px;
}

.badge {
  position: absolute;
  top: -12px;
  right: var(--space-6);
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
}

.pricing-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

.price span {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-secondary);
}

.features-list {
  list-style: none;
  margin-bottom: var(--space-8);
}

.features-list li {
  padding: var(--space-2) 0;
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.features-list li::before {
  content: "✓";
  color: var(--accent);
  margin-right: var(--space-2);
}

/* === CTA (layout-patterns §7: centered 64%) === */
.cta {
  padding: var(--space-24) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--space-4);
}

.cta p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

/* === Footer (layout-patterns §5: simple 20%) === */
.footer {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--duration-instant) var(--ease-main);
}

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

.copyright {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .feature-item {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .feature-item.reverse .feature-text,
  .feature-item.reverse .feature-visual {
    order: initial;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* === Reduced motion (motion.md §3.2) === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-property: opacity, color !important;
  }
}
