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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0F172A;
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.nav {
  border-bottom: 1px solid #E2E8F0;
  padding: 20px 0;
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-weight: 700;
  font-size: 18px;
  color: #6366F1;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: #64748B;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0F172A;
}

.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: #EEF2FF;
  color: #6366F1;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #0F172A;
}

.hero-subtitle {
  font-size: 20px;
  color: #475569;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #6366F1;
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #4F46E5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: #FFFFFF;
  color: #6366F1;
  border: 2px solid #E2E8F0;
}

.btn-secondary:hover {
  border-color: #6366F1;
  transform: translateY(-1px);
}

.workflow {
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: #64748B;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.workflow-card {
  padding: 40px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  transition: all 0.3s;
}

.workflow-card:hover {
  border-color: #6366F1;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.workflow-number {
  font-size: 14px;
  font-weight: 700;
  color: #6366F1;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.workflow-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.workflow-card p {
  color: #64748B;
  line-height: 1.7;
  margin-bottom: 20px;
}

.tech-stack {
  font-size: 13px;
  color: #94A3B8;
  font-weight: 500;
}

.capabilities {
  padding: 80px 0;
  background: #F8FAFC;
}

.capabilities-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.capabilities-content h2 {
  font-size: 36px;
  margin-bottom: 32px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  margin-bottom: 28px;
  padding-left: 32px;
  position: relative;
}

.feature-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  background: #EEF2FF;
  border-radius: 4px;
  border: 2px solid #6366F1;
}

.feature-list strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
  color: #0F172A;
}

.feature-list span {
  color: #64748B;
  font-size: 15px;
}

.code-preview {
  background: #1E293B;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.code-header {
  padding: 12px 16px;
  background: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #475569;
}

.code-file {
  margin-left: auto;
  color: #94A3B8;
  font-size: 13px;
}

.code-content {
  padding: 24px;
}

.code-content pre {
  margin: 0;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #E2E8F0;
}

.code-keyword {
  color: #C084FC;
}

.code-function {
  color: #60A5FA;
}

.code-tag {
  color: #34D399;
}

.code-attr {
  color: #FBBF24;
}

.code-comment {
  color: #64748B;
}

.metrics {
  padding: 80px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.metric-card {
  text-align: center;
  padding: 48px 32px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.metric-value {
  font-size: 56px;
  font-weight: 700;
  color: #6366F1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 18px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 4px;
}

.metric-desc {
  font-size: 14px;
  color: #94A3B8;
}

.footer {
  padding: 48px 0;
  border-top: 1px solid #E2E8F0;
  text-align: center;
  color: #94A3B8;
  font-size: 14px;
}

.pipeline-header {
  padding: 48px 0 32px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.back-link {
  display: inline-block;
  color: #6366F1;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 16px;
  transition: transform 0.2s;
}

.back-link:hover {
  transform: translateX(-4px);
}

.pipeline-header h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.pipeline-header p {
  font-size: 18px;
  color: #64748B;
}

.pipeline-demo {
  padding: 64px 0;
}

.pipeline-stage {
  margin-bottom: 40px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  overflow: hidden;
}

.pipeline-stage.active {
  border-color: #6366F1;
}

.stage-header {
  padding: 24px 32px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #E2E8F0;
}

.stage-status {
  padding: 6px 12px;
  background: #DCFCE7;
  color: #16A34A;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stage-status.processing {
  background: #FEF3C7;
  color: #D97706;
}

.stage-header h3 {
  flex: 1;
  font-size: 20px;
}

.stage-time {
  color: #64748B;
  font-size: 14px;
}

.stage-body {
  padding: 32px;
}

.output-label {
  font-weight: 600;
  font-size: 14px;
  color: #475569;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.component-item {
  padding: 12px 16px;
  background: #F1F5F9;
  border-radius: 6px;
  font-size: 14px;
  color: #475569;
}

.token-list {
  margin-bottom: 32px;
}

.token-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
}

.token-name {
  font-weight: 600;
  color: #0F172A;
}

.token-value {
  color: #64748B;
  font-size: 14px;
}

.file-tree {
  background: #F8FAFC;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.file-tree-item {
  padding: 6px 0;
  font-family: 'Monaco', monospace;
  font-size: 13px;
  color: #475569;
}

.file-tree-item.indent {
  padding-left: 24px;
}

.code-sample {
  background: #1E293B;
  border-radius: 8px;
  overflow: hidden;
}

.code-sample-header {
  padding: 10px 16px;
  background: #0F172A;
  color: #94A3B8;
  font-size: 13px;
  font-family: 'Monaco', monospace;
}

.code-sample pre {
  padding: 20px;
  margin: 0;
  overflow-x: auto;
}

.code-sample code {
  font-family: 'Monaco', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #E2E8F0;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.metric-small {
  text-align: center;
  padding: 24px;
  background: #F8FAFC;
  border-radius: 8px;
}

.metric-small-value {
  font-size: 32px;
  font-weight: 700;
  color: #6366F1;
  margin-bottom: 8px;
}

.metric-small-label {
  font-size: 13px;
  color: #64748B;
}

.viewport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.viewport-card {
  padding: 20px;
  background: #F8FAFC;
  border-radius: 8px;
  text-align: center;
}

.viewport-name {
  font-weight: 600;
  margin-bottom: 8px;
}

.viewport-status {
  color: #16A34A;
  font-size: 14px;
}

.processing-indicator {
  text-align: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #E2E8F0;
  border-top-color: #6366F1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-indicator p {
  color: #64748B;
}

.pipeline-actions {
  padding: 64px 0;
  background: #F8FAFC;
}

.pipeline-actions .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.action-card {
  padding: 40px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  text-align: center;
}

.action-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.action-card p {
  color: #64748B;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }
  .workflow-grid,
  .capabilities-split,
  .metrics-grid,
  .component-grid,
  .metrics-row,
  .viewport-grid,
  .pipeline-actions .container {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 80px 0 60px;
  }
  .hero-cta {
    flex-direction: column;
  }
}