:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --navy: #0b1220;
  --navy-mid: #131e33;
  --navy-border: #1e2d47;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --border: #dce3ec;
  --border-strong: #cbd5e1;

  --blue: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-border: #bfdbfe;

  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --emerald-border: #a7f3d0;

  --amber: #d97706;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;

  --indigo: #4338ca;
  --indigo-soft: #eef2ff;
  --indigo-border: #c7d2fe;

  --radius-lg: 16px;
  --radius-md: 11px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 28px -8px rgba(15, 23, 42, 0.1), 0 4px 10px -4px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Topbar */
.topbar {
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-border);
  color: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.brand-text-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

.brand-text-sub {
  font-size: 11.5px;
  color: #94a3b8;
  letter-spacing: 0.2px;
}

.topbar-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

.top-pill-green {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.top-pill-slate {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* Hero */
.hero {
  background-color: var(--navy);
  background-image:
    radial-gradient(900px 380px at 18% 0%, rgba(37, 99, 235, 0.20), transparent 70%),
    radial-gradient(700px 340px at 85% 10%, rgba(16, 185, 129, 0.13), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 36px 36px, 36px 36px;
  color: #f8fafc;
  padding: 56px 0 52px;
  border-bottom: 1px solid var(--navy-border);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 780px;
}

.hero h1 .accent-grad {
  background: linear-gradient(90deg, #60a5fa 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  margin: 0 0 28px;
  font-size: 16px;
  color: #cbd5e1;
  max-width: 740px;
  line-height: 1.7;
}

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

.metric-box {
  background: rgba(19, 30, 51, 0.78);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.metric-val {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.metric-lab {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Filter & Search Toolbar */
.toolbar-wrap {
  margin-top: -24px;
  position: relative;
  z-index: 10;
}

.toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: #94a3b8;
  color: var(--ink);
}

.filter-btn.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 230px;
  max-width: 320px;
}

.search-box input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface-soft);
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.search-box input:focus {
  border-color: var(--blue);
  background: #fff;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

/* Products Section */
.section-products {
  padding: 34px 0 48px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-header span {
  font-size: 13px;
  color: var(--ink-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 22px;
}

/* Product Card */
.p-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.p-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue);
}

.p-card[data-accent="emerald"]::before {
  background: var(--emerald);
}

.p-card[data-accent="amber"]::before {
  background: var(--amber);
}

.p-card[data-accent="indigo"]::before {
  background: var(--indigo);
}

.p-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.p-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.p-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.p-crest {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid var(--blue-border);
}

.p-card[data-accent="emerald"] .p-crest {
  background: var(--emerald-soft);
  color: var(--emerald);
  border-color: var(--emerald-border);
}

.p-card[data-accent="amber"] .p-crest {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: var(--amber-border);
}

.p-card[data-accent="indigo"] .p-crest {
  background: var(--indigo-soft);
  color: var(--indigo);
  border-color: var(--indigo-border);
}

.p-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.p-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.p-en {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.p-cat-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.p-cat-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

.p-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.p-tagline {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.p-summary {
  font-size: 13.2px;
  color: var(--ink-muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

.p-features {
  list-style: none;
  padding: 12px 14px;
  margin: 0 0 16px;
  background: var(--surface-soft);
  border: 1px solid #edf2f7;
  border-radius: var(--radius-md);
  flex: 1;
}

.p-features li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.p-features li:last-child {
  margin-bottom: 0;
}

.p-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--blue);
}

.p-card[data-accent="emerald"] .p-features li::before {
  color: var(--emerald);
}

.p-card[data-accent="amber"] .p-features li::before {
  color: var(--amber);
}

.p-meta-strip {
  font-size: 12px;
  color: var(--ink-muted);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-meta-strip strong {
  color: var(--ink-secondary);
}

.p-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}

.btn-primary:hover {
  background: #1e40af;
}

.p-card[data-accent="emerald"] .btn-primary {
  background: var(--emerald);
  border-color: var(--emerald);
}

.p-card[data-accent="emerald"] .btn-primary:hover {
  background: #047857;
}

.p-card[data-accent="amber"] .btn-primary {
  background: var(--amber);
  border-color: var(--amber);
}

.p-card[data-accent="amber"] .btn-primary:hover {
  background: #b45309;
}

.btn-secondary {
  background: #fff;
  color: var(--ink-secondary);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: 12.8px;
}

.btn-secondary:hover {
  background: var(--surface-soft);
  border-color: #94a3b8;
  color: var(--ink);
}

/* Extensible Upcoming Slot Card */
.p-card-upcoming {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px dashed var(--border-strong);
  box-shadow: none;
  justify-content: space-between;
}

.p-card-upcoming::before {
  background: #94a3b8;
}

.p-card-upcoming:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* Architecture Pillars */
.pillars-section {
  padding: 44px 0 52px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.pillar-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.pillar-num {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.pillar-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 34px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer strong {
  color: #e2e8f0;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .hero-metrics,
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 38px 0 42px;
  }
  .hero-metrics,
  .pillars-grid,
  .product-grid,
  .p-actions {
    grid-template-columns: 1fr;
  }
  .search-box {
    max-width: 100%;
  }
}
