/* ============================================================
   禾歆优科技 AI 官网 — 设计系统
   融合: Vercel × Anthropic × Cursor | 高端白色系
   ============================================================ */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES — 设计令牌
   ============================================================ */
:root {
  /* --- Canvas & Surface --- */
  --color-canvas: #faf9f6;
  --color-canvas-soft: #f5f2ed;
  --color-surface: #ffffff;
  --color-surface-elevated: #faf9f6;
  --color-surface-card: #ffffff;

  /* --- Ink & Text --- */
  --color-ink: #141413;
  --color-ink-strong: #0d0d0c;
  --color-body: #3d3d3a;
  --color-body-strong: #252523;
  --color-muted: #6c6a64;
  --color-muted-soft: #8e8b82;

  /* --- Hairlines & Borders --- */
  --color-hairline: #e6dfd8;
  --color-hairline-soft: #ebe6df;
  --color-hairline-strong: #d5cec4;
  --color-border-default: rgba(0, 0, 0, 0.06);

  /* --- Brand --- */
  --color-brand: #2563EB;
  --color-brand-hover: #1d4ed8;
  --color-brand-soft: rgba(37, 99, 235, 0.08);
  --color-brand-glow: #00D4FF;
  --color-brand-glow-soft: rgba(0, 212, 255, 0.12);

  /* --- Accent --- */
  --color-accent-teal: #5db8a6;
  --color-accent-amber: #e8a55a;
  --color-accent-violet: #7c3aed;
  --color-accent-rose: #e11d48;

  /* --- Semantic --- */
  --color-success: #059669;
  --color-warning: #d97706;
  --color-error: #dc2626;

  /* --- Shadows --- */
  --shadow-xs: 0px 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0px 0px 0px 1px rgba(0, 0, 0, 0.05), 0px 1px 3px rgba(0, 0, 0, 0.04), 0px 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0px 0px 0px 1px rgba(0, 0, 0, 0.06), 0px 2px 4px rgba(0, 0, 0, 0.04), 0px 8px 12px -6px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0px 0px 0px 1px rgba(0, 0, 0, 0.07), 0px 4px 8px rgba(0, 0, 0, 0.05), 0px 16px 24px -8px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0px 0px 0px 1px rgba(0, 0, 0, 0.08), 0px 8px 16px rgba(0, 0, 0, 0.06), 0px 24px 48px -12px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0px 0px 0px 1px rgba(37, 99, 235, 0.15), 0px 4px 12px rgba(37, 99, 235, 0.1), 0px 12px 32px -8px rgba(0, 212, 255, 0.08);

  /* --- Typography --- */
  --font-sans: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* --- Spacing Rhythm --- */
  --space-section: 120px;
  --space-section-sm: 80px;
  --space-gutter: 24px;
  --space-card-gap: 32px;

  /* --- Radius --- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  /* --- Layout --- */
  --max-width: 1280px;
  --nav-height: 72px;

  /* --- Transitions --- */
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1.0);
  --ease-in-out: cubic-bezier(0.42, 0.0, 0.58, 1.0);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1.0);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
  --duration-page: 800ms;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-body);
  background-color: var(--color-canvas);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Selection */
::selection {
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display-xl {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--color-ink);
}

.display-lg {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--color-ink);
}

.display-md {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--color-ink);
}

.title-lg {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-ink);
}

.title-md {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-ink);
}

.title-sm {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-ink);
}

.body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-body);
}

.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-body);
}

.body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-muted);
}

.caption {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-muted);
}

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

.text-glow {
  color: var(--color-brand-glow);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-glow) 50%, var(--color-accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-gutter);
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section-sm {
  padding: var(--space-section-sm) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .caption {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  border-radius: 100px;
}

.section-header .display-md {
  margin-bottom: 16px;
}

.section-header .body-lg {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-card-gap);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-card-gap);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-card-gap);
}

/* ============================================================
   NAVIGATION — 毛玻璃 + 滚动透明渐变
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--duration-base) var(--ease-out);
  background: transparent;
}

.nav.scrolled {
  background: rgba(250, 249, 246, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.06), 0px 4px 16px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.3px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-glow) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-body-strong);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-link:hover {
  color: var(--color-brand);
  background: var(--color-brand-soft);
}

.nav-link.active {
  color: var(--color-brand);
  background: var(--color-brand-soft);
}

.nav-cta {
  margin-left: 8px;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--color-brand-hover);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: var(--color-brand);
}

.btn-ghost {
  background: transparent;
  color: var(--color-body-strong);
}

.btn-ghost:hover {
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.btn-glow {
  background: var(--color-brand);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-glow));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.btn-glow:hover::after {
  opacity: 1;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 18px 40px;
  font-size: 17px;
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-surface-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-hairline-soft);
  transition: all var(--duration-slow) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-hairline);
  transform: translateY(-2px);
}

.card-glow {
  border: 1px solid transparent;
  background: linear-gradient(var(--color-surface-card), var(--color-surface-card)) padding-box,
              linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.1)) border-box;
}

.card-glow:hover {
  box-shadow: var(--shadow-glow);
}

.card-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.card-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: var(--color-canvas-soft);
  color: var(--color-muted);
  border: 1px solid var(--color-hairline-soft);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 70%);
}

/* Gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(37, 99, 235, 0.08);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(0, 212, 255, 0.06);
  bottom: -100px;
  left: -50px;
  animation-delay: -7s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(124, 58, 237, 0.05);
  top: 40%;
  left: 30%;
  animation-delay: -14s;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

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

.hero-title {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

/* ============================================================
   3D MODEL ICON SPHERE — 大模型图标3D悬浮旋转
   ============================================================ */
.model-sphere {
  perspective: 800px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-orbit {
  position: relative;
  width: 440px;
  height: 440px;
  transform-style: preserve-3d;
  animation: orbitRotate 30s linear infinite;
}

.model-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  border: 1px solid var(--color-hairline-soft);
  overflow: hidden;
}

.model-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.model-icon:hover {
  transform: scale(1.2) !important;
  box-shadow: var(--shadow-glow);
  z-index: 10;
  border-color: var(--color-brand);
}

.model-icon .icon-label {
  position: absolute;
  bottom: -28px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.model-icon:hover .icon-label {
  opacity: 1;
}

.model-cta {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* ============================================================
   AI WORKFLOW ANIMATION — 右侧AI自动执行演示
   ============================================================ */
.ai-workflow {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-hairline);
  width: 100%;
  max-width: 480px;
}

.ai-workflow-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-hairline-soft);
}

.ai-workflow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-brand);
  animation: pulse 2s ease-in-out infinite;
}

.ai-workflow-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  font-family: var(--font-mono);
}

.ai-workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  animation: stepIn 0.5s var(--ease-out) both;
  position: relative;
  overflow: hidden;
}

.ai-step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-brand-soft);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.ai-step.executing::before {
  opacity: 1;
}

.ai-step.completed::before {
  background: rgba(5, 150, 105, 0.06);
  opacity: 1;
}

.ai-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: var(--color-canvas-soft);
  color: var(--color-muted);
  transition: all var(--duration-base);
}

.ai-step.executing .ai-step-icon {
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.ai-step.completed .ai-step-icon {
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-success);
}

.ai-step-content {
  flex: 1;
  min-width: 0;
}

.ai-step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  font-family: var(--font-mono);
  transition: color var(--duration-base);
}

.ai-step.executing .ai-step-label {
  color: var(--color-brand);
}

.ai-step.completed .ai-step-label {
  color: var(--color-success);
}

.ai-step-detail {
  font-size: 12px;
  color: var(--color-muted-soft);
  margin-top: 2px;
}

.ai-step-status {
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.ai-step.executing .ai-step-status {
  color: var(--color-brand);
}

.ai-step.completed .ai-step-status {
  color: var(--color-success);
}

/* ============================================================
   PARTICLES BACKGROUND
   ============================================================ */
.particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   GLOW LINE — 流光边框效果
   ============================================================ */
.glow-line {
  position: relative;
}

.glow-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-brand-glow), transparent);
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-card-gap);
}

.service-card {
  padding: 40px;
}

.service-card-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.service-card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-body);
}

.service-card-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
  flex-shrink: 0;
}

.service-model-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.service-model-icon {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: var(--color-canvas-soft);
  border: 1px solid var(--color-hairline-soft);
  color: var(--color-body-strong);
  transition: all var(--duration-fast);
}

.service-model-icon:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

/* ============================================================
   EXECUTION SYSTEM — 终端风格
   ============================================================ */
.execution-hero {
  position: relative;
  overflow: hidden;
}

.terminal-window {
  background: #181715;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 800px;
  margin: 0 auto;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 8px;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
}

.terminal-line {
  display: flex;
  gap: 8px;
  opacity: 0;
  animation: terminalLineIn 0.3s ease-out both;
}

.terminal-prompt {
  color: var(--color-brand-glow);
  flex-shrink: 0;
}

.terminal-output {
  color: rgba(255, 255, 255, 0.6);
}

.terminal-success {
  color: #28c840;
}

.terminal-info {
  color: #60a5fa;
}

.terminal-warning {
  color: #fbbf24;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--color-brand-glow);
  animation: cursorBlink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

/* Execution capabilities grid */
.execution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.execution-card {
  text-align: center;
  padding: 40px 24px;
}

.execution-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  background: var(--color-brand-soft);
  position: relative;
}

.execution-card-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  border: 1px solid var(--color-hairline);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.execution-card:hover .execution-card-icon::after {
  opacity: 1;
  border-color: var(--color-brand);
}

/* Platform badges */
.platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-hairline-soft);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-body-strong);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-base) var(--ease-out);
}

.platform-badge:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-brand);
  transform: translateY(-2px);
}

/* ============================================================
   SOLUTIONS
   ============================================================ */
.solution-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.solution-card .card-icon {
  background: linear-gradient(135deg, var(--color-brand-soft), var(--color-brand-glow-soft));
}

.solution-features {
  margin-top: 20px;
  flex: 1;
}

.solution-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-body);
  border-bottom: 1px solid var(--color-hairline-soft);
}

.solution-features li:last-child {
  border-bottom: none;
}

.solution-features li::before {
  content: '→';
  color: var(--color-brand);
  font-weight: 600;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(180deg, var(--color-canvas) 0%, var(--color-canvas-soft) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 18px;
  color: var(--color-muted);
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-hairline-soft);
  position: relative;
}

.about-visual-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-glow), var(--color-accent-violet));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.about-stat {
  text-align: center;
}

.about-stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-brand);
  line-height: 1.2;
}

.about-stat-label {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 4px;
}

/* Process timeline */
.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 48px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-hairline);
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.process-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 auto 12px;
  transition: all var(--duration-base);
}

.process-step:hover .process-step-num {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-glow);
}

.process-step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

.process-step-desc {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 4px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  padding: 40px;
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-hairline-soft);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--color-brand);
}

.contact-item-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 15px;
  color: var(--color-body-strong);
}

.contact-qr {
  padding: 40px;
  text-align: center;
}

.contact-qr-placeholder {
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  background: var(--color-canvas-soft);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border: 1px solid var(--color-hairline);
}

.contact-qr-label {
  font-size: 14px;
  color: var(--color-muted);
}

.icp-info {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: var(--color-muted-soft);
}

.icp-info a {
  color: var(--color-muted-soft);
  text-decoration: underline;
}

.icp-info a:hover {
  color: var(--color-brand);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--color-hairline-soft);
  padding: 64px 0 32px;
  background: var(--color-canvas-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-muted);
  transition: color var(--duration-fast);
}

.footer-links a:hover {
  color: var(--color-brand);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-hairline-soft);
  font-size: 13px;
  color: var(--color-muted-soft);
}

/* ============================================================
   ANIMATIONS — KEYFRAMES
   ============================================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.95); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 10px) scale(1.02); }
}

@keyframes orbitRotate {
  from { transform: rotateY(0deg) rotateX(10deg); }
  to { transform: rotateY(360deg) rotateX(10deg); }
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes terminalLineIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--color-hairline-soft); }
  50% { border-color: var(--color-brand); }
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.6s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.7s; }
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --space-section: 80px;
    --space-section-sm: 60px;
  }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .execution-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 400px; }
  .hero-text { max-width: 100%; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-subtitle { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-timeline { flex-wrap: wrap; gap: 24px; }
  .process-timeline::before { display: none; }
}

@media (max-width: 768px) {
  :root {
    --space-section: 64px;
    --space-section-sm: 48px;
    --nav-height: 60px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .execution-grid { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--ease-out);
    align-items: stretch;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
  }

  .nav-cta {
    margin: 8px 0 0 0;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-visual { min-height: 320px; }
  .model-orbit { width: 300px; height: 300px; }
  .model-icon { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 12px; }

  .display-xl { font-size: 36px; }
  .display-lg { font-size: 28px; }
  .display-md { font-size: 24px; }

  .service-card-features { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .about-stat-value { font-size: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .btn-lg { padding: 14px 24px; font-size: 15px; }
  .btn-xl { padding: 16px 28px; font-size: 16px; }

  .card { padding: 24px; }
  .solution-card { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }
  .model-orbit { width: 240px; height: 240px; }
}

/* ============================================================
   LOADING / SHIMMER
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-hairline-soft) 25%, var(--color-canvas-soft) 50%, var(--color-hairline-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .nav, .footer, .particles-canvas, .hero-orb, .hero-grid { display: none; }
  body { background: white; color: black; }
}
