/* ============================================
   NexNova AI - Design System V5
   Apple + OpenAI + NVIDIA Enterprise
   Tech blue #0066FF as accent
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors - Apple-inspired clean palette */
  --bg-base: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-surface: #f5f5f7;
  --bg-card: #ffffff;
  --bg-hover: #f5f5f7;
  --bg-code: #f5f5f7;

  --border-subtle: #e8e8ed;
  --border-default: #d2d2d7;
  --border-strong: #a1a1a6;

  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --text-muted: #aeaeb2;

  /* Tech blue accent - #0066FF from PRD V2.0 */
  --accent: #0066FF;
  --accent-hover: #0052cc;
  --accent-light: #e6f0ff;
  --accent-soft: rgba(0, 102, 255, 0.12);
  --accent-border: rgba(0, 102, 255, 0.25);

  /* No gradients - flat enterprise style */
  --grad-primary: #0066FF;
  --grad-soft: #ffffff;

  /* Typography - System font stack like Apple */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-cn: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  /* Spacing - generous like Apple */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --space-5xl: 5rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 880px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 980px;

  /* Shadows - minimal, Apple relies on borders not shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.10);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.15s;
  --dur-base: 0.25s;
  --dur-slow: 0.5s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Apple style: no ambient background, no floating orbs, pure clean white */

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

/* Apple style: all headings are near-black, blue is only for interactive elements */
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); }

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 500; }

p { color: var(--text-secondary); font-weight: 400; }

h1-en, h2-en, h3-en {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
  text-transform: uppercase;
}

.hero-title-en, .section-title-en {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title-en {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin-top: 0.4rem;
  text-transform: uppercase;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--dur-fast);
}

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

/* ---------- Top Header Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.header-logo-text {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.header.scrolled .header-logo-text { color: var(--text-primary); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.header-nav a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast);
  white-space: nowrap;
  text-decoration: none;
}

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

.header-nav a.active {
  color: var(--accent);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Mobile hamburger */
.header-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.header-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--dur-fast);
}

.header-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header-toggle.active span:nth-child(2) { opacity: 0; }
.header-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile slide-down menu */
.header-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-md) var(--space-xl);
  flex-direction: column;
  gap: 2px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.header-mobile.active { display: flex; }

.header-mobile a {
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.header-mobile a:hover { background: var(--bg-soft); color: var(--accent); }
.header-mobile a.active { color: var(--accent); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-base);
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding: 8px 0;
}
.btn-ghost:hover { color: var(--accent-hover); }

.btn-sm { padding: 7px 16px 5px; font-size: 0.85rem; line-height: 1.4; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }

.btn .arrow {
  transition: transform var(--dur-fast);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Section ---------- */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-sm {
  padding: var(--space-3xl) 0 var(--space-5xl);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-4xl);
}

.section-header h2 { margin-bottom: 0.5rem; }
.section-header .section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: var(--space-md);
  line-height: 1.7;
}

.section-soft { background: var(--bg-soft); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-height) + var(--space-5xl)) 0 var(--space-5xl);
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: var(--space-lg) auto var(--space-xl);
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--space-2xl);
}

.page-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-xl);
}

.hero-tag {
  padding: 6px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-3xl);
  text-align: center;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: var(--space-md) auto 0;
}

/* ---------- Card ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--dur-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  border-color: var(--border-strong);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.card-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: auto;
  margin-bottom: var(--space-sm);
}

.card-tag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 2px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 980px;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  background: var(--accent-light);
  border-radius: var(--radius-md);
  color: var(--accent);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.card-icon-sm {
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  color: var(--accent);
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Capability Matrix ---------- */
.cap-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.cap-item {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-fast);
}

.cap-item:hover {
  border-color: var(--accent-border);
}

.cap-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-md);
  background: var(--accent-light);
  border-radius: var(--radius-md);
  color: var(--accent);
}

.cap-icon svg { width: 20px; height: 20px; stroke: currentColor; }
.cap-item h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 2px; }
.cap-title-en { font-size: 0.75rem; font-weight: 400; color: var(--text-tertiary); letter-spacing: 0.04em; margin-bottom: 6px; }
.cap-item p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }

/* ---------- Ecosystem Cards (homepage) ---------- */
.eco-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: border-color var(--dur-fast);
}

.eco-card:hover {
  border-color: var(--border-strong);
}

.eco-card-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
}

.eco-card-banner svg { width: 36px; height: 36px; stroke: currentColor; }

.eco-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.eco-card-tagline {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-sm);
}

.eco-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.eco-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eco-card-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eco-card-features li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.eco-card .btn { margin-top: auto; }

.card-link {
  display: inline-block;
  padding-top: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.card-link:hover { color: var(--accent-hover); }

/* ---------- Advantage Items (Why NexNova) ---------- */
.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.advantage-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 32px;
}

.advantage-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--text-primary);
}

.advantage-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Scenario Tiles ---------- */
.scenario-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color var(--dur-fast);
  cursor: pointer;
}

.scenario-tile:hover {
  border-color: var(--accent-border);
}

.scenario-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  color: var(--accent);
  transition: all var(--dur-base);
}

.scenario-tile:hover .scenario-tile-icon {
  background: var(--bg-base);
  color: var(--accent);
}

.scenario-tile-icon svg { width: 20px; height: 20px; stroke: currentColor; }

.scenario-tile h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

.scenario-tile p {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin: 0;
}

/* ---------- Filter Tabs ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-3xl);
}

.filter-tab {
  padding: 8px 18px;
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast);
}

.filter-tab:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

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

/* ---------- Case Cards ---------- */
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  border-color: var(--border-strong);
}

.case-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-thumb-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  color: var(--text-tertiary);
}

.case-thumb-bg svg { width: 40px; height: 40px; stroke: currentColor; }

.case-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transition: all var(--dur-base);
}

.case-card:hover .case-thumb-play {
  background: var(--accent);
  color: #ffffff;
}

.case-thumb-play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }

.case-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.case-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-weight: 500;
}

.case-tag-gray {
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.case-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.case-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.case-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-result {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  padding: var(--space-sm) 0;
  margin-top: auto;
}

.case-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.case-tech span {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--bg-surface);
  color: var(--text-tertiary);
  border-radius: var(--radius-sm);
}

/* ---------- Split Content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: var(--space-3xl); }
}

.split-content h2 { margin-bottom: 0.5rem; }

.split-content > p {
  font-size: 1.02rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

/* ---------- Number Stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ---------- Strengths (number list) ---------- */
.strength-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) { .strength-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .strength-list { grid-template-columns: 1fr; } }

.strength-item {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-fast);
}

.strength-item:hover {
  border-color: var(--accent-border);
}

.strength-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.strength-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.strength-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

/* ---------- Partner Tiles ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 1024px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .partner-grid { grid-template-columns: 1fr; } }

.partner-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color var(--dur-fast);
}

.partner-tile:hover {
  border-color: var(--accent-border);
}

.partner-tile svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  flex-shrink: 0;
}

/* ---------- Path / Step ---------- */
.path {
  display: flex;
  align-items: stretch;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.path-step {
  flex: 1;
  min-width: 160px;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  transition: border-color var(--dur-fast);
}

.path-step:hover {
  border-color: var(--accent-border);
}

.path-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto var(--space-md);
  background: var(--accent-light);
  border-radius: var(--radius-md);
  color: var(--accent);
}

.path-step-icon svg { width: 22px; height: 22px; stroke: currentColor; }

.path-step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.path-step p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

.path-arrow {
  display: flex;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-default);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 6px);
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--accent);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-5xl) 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.cta-section p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ---------- Form ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--dur-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

/* ---------- Tencent Survey Embed ---------- */
.qq-survey-wrap {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  max-width: 560px;
}

.qq-survey-wrap iframe {
  display: block;
  width: 100%;
  min-height: 680px;
}

@media (max-width: 1024px) {
  .qq-survey-wrap { max-width: 100%; }
  .qq-survey-wrap iframe { min-height: 720px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

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

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-brand span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--dur-fast);
}

.footer-nav a:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.footer-social {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--dur-fast);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-bottom a { color: var(--text-tertiary); }
.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .footer-main { flex-direction: column; gap: var(--space-md); }
  .footer-nav { justify-content: center; }
}

/* ---------- Hero Brand Logo Image ---------- */
/* ---------- Hero Logo ---------- */
.hero-logo-img {
  display: block;
  width: clamp(200px, 30vw, 320px);
  height: auto;
  margin: 0 auto var(--space-md);
}

/* ---------- Path Flow (horizontal steps) ---------- */
.path-flow {
  display: flex;
  align-items: stretch;
  gap: var(--space-sm);
  flex-wrap: nowrap;
  justify-content: center;
}

.path-flow .path-step {
  flex: 1;
  min-width: 0;
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color var(--dur-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.path-flow .path-step:hover {
  border-color: var(--accent-border);
}

.path-flow .path-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.path-flow .path-step-icon svg { width: 18px; height: 18px; stroke: currentColor; }

.path-flow .path-step-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.path-flow .path-step-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.path-flow .path-arrow {
  display: flex;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 1.2rem;
  flex-shrink: 0;
  padding: 0 2px;
}

@media (max-width: 768px) {
  .path-flow { flex-wrap: wrap; }
  .path-flow .path-step { min-width: calc(50% - 4px); }
  .path-flow .path-arrow { display: none; }
}

/* ---------- Card Icon Color Variants ---------- */
.card-icon.violet { background: #f3e8ff; color: #7c3aed; }
.card-icon.blue { background: var(--accent-light); color: var(--accent); }
.card-icon.cyan { background: #e0f7fa; color: #0891b2; }
.card-icon.purple { background: #f5f3ff; color: #8b5cf6; }
.card-icon.pink { background: #fce7f3; color: #db2777; }
.card-icon.orange { background: #fff7ed; color: #ea580c; }
.card-icon.green { background: #f0fdf4; color: #16a34a; }
.card-icon.teal { background: #f0fdfa; color: #14b8a6; }

/* ---------- Video Wall (4-column horizontal grid) ---------- */
.video-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.video-wall .case-card {
  min-width: 0;
}

.video-wall .case-thumb {
  aspect-ratio: 16 / 9;
}

.video-wall .case-body {
  padding: var(--space-md);
}

.video-wall .case-body h4 {
  font-size: 0.92rem;
  line-height: 1.4;
}

.video-wall .case-body p {
  font-size: 0.8rem;
  -webkit-line-clamp: 1;
}

@media (max-width: 1024px) {
  .video-wall { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .video-wall { grid-template-columns: 1fr; }
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Success toast ---------- */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 24px;
  background: var(--text-primary);
  color: var(--bg-base);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur-base);
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Empty state ---------- */
.empty-state {
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
  color: var(--text-tertiary);
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-lg);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  margin: 0 auto var(--space-md);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-4xl { margin-top: var(--space-4xl); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .header-toggle { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: var(--space-4xl) 0; }
  .hero { padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-4xl); }
  .page-hero { padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl); }
}

/* ---------- Modal (for admin/video) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.modal-backdrop.active { display: flex; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
}

.modal h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* ---------- Detail view ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
}