/* =============================================
   Технопесец.engine — Page-specific Styles
   Reuses variables from portal.css and style.css
   ============================================= */

/* === Engine Hero (no video, gradient background) === */
.engine-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
  padding: 120px 0 60px;
}
.engine-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.4) 0%, #030712 50%, rgba(15, 23, 42, 0.6) 100%);
  pointer-events: none;
  z-index: 0;
}
.engine-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.engine-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(214, 179, 1, 0.1);
  border: 1px solid rgba(214, 179, 1, 0.3);
  font-size: 13px;
  color: var(--tp-gold);
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out;
}
.engine-hero-title {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--tp-text);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}
.engine-hero-subtitle {
  font-size: 18px;
  color: var(--tp-text-2);
  max-width: 650px;
  margin: 0 auto 36px;
  line-height: 1.6;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}
.engine-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* === Engine Gradient Text (cyan-purple variant) === */
.engine-gradient-text {
  background: linear-gradient(135deg, var(--tp-cyan) 0%, #8b5cf6 50%, var(--tp-gold-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Ecosystem / Product Cards (compact) === */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.eco-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s;
  text-decoration: none;
  color: var(--tp-text) !important;
}
.eco-card:hover {
  transform: translateY(-3px);
  border-color: var(--tp-border-light);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.eco-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.eco-card-icon.gold { background: rgba(214, 179, 1, 0.15); color: var(--tp-gold); }
.eco-card-icon.cyan { background: rgba(34, 211, 238, 0.15); color: var(--tp-cyan); }
.eco-card-icon.purple { background: rgba(168, 85, 247, 0.15); color: var(--tp-purple); }
.eco-card-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--tp-text);
}
.eco-card-info p {
  font-size: 12px;
  color: var(--tp-muted);
  line-height: 1.4;
}
.eco-footnote {
  text-align: center;
  margin-top: 20px;
  color: var(--tp-muted);
  font-size: 13px;
  font-style: italic;
}

/* === Capabilities Grid (6 cards) === */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.cap-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.cap-card:hover {
  transform: translateY(-4px);
  border-color: var(--tp-border-light);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.cap-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.cap-card-icon.gold { background: rgba(214, 179, 1, 0.15); color: var(--tp-gold); }
.cap-card-icon.cyan { background: rgba(34, 211, 238, 0.15); color: var(--tp-cyan); }
.cap-card-icon.purple { background: rgba(168, 85, 247, 0.15); color: var(--tp-purple); }
.cap-card-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--tp-green); }
.cap-card-icon.orange { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.cap-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--tp-text);
}
.cap-card p {
  color: var(--tp-text-2);
  font-size: 14px;
  line-height: 1.6;
}

/* === SVG Mockup Section === */
.mockup-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.mockup-wrapper svg {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  background: #060b14;
  border: 1px solid var(--tp-border);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
}

/* === Security / Deployment Section === */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.deploy-item {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.25s;
}
.deploy-item:hover {
  border-color: var(--tp-border-light);
  transform: translateY(-2px);
}
.deploy-item-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.12);
  color: var(--tp-green);
}
.deploy-item-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--tp-text);
  margin-bottom: 4px;
}
.deploy-item-text p {
  font-size: 13px;
  color: var(--tp-muted);
  line-height: 1.5;
}

/* === Engine CTA === */
.engine-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}
.engine-cta-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
}
.engine-cta-card h2 {
  margin-bottom: 8px;
}
.engine-cta-card p {
  color: var(--tp-text-2);
  font-size: 15px;
  max-width: 500px;
}

/* === Node Pulse Animation === */
@keyframes nodePulse {
  0%, 100% { opacity: 0.6; r: var(--node-r, 18); }
  50% { opacity: 1; r: calc(var(--node-r, 18) + 3); }
}
.node-pulse {
  animation: nodePulse 2.5s ease-in-out infinite;
}
.node-pulse-delay-1 { animation-delay: 0s; }
.node-pulse-delay-2 { animation-delay: 0.8s; }
.node-pulse-delay-3 { animation-delay: 1.6s; }

/* === Responsive === */
@media (max-width: 1024px) {
  .engine-hero { min-height: 50vh; padding: 100px 0 50px; }
}
@media (max-width: 768px) {
  .engine-hero { min-height: auto; padding: 80px 0 40px; }
  .engine-hero-title { font-size: 30px; }
  .engine-hero-subtitle { font-size: 15px; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .deploy-grid { grid-template-columns: 1fr; }
  .engine-cta-card { flex-direction: column; align-items: stretch; text-align: center; }
  .engine-cta-card p { max-width: none; }
  .mockup-wrapper { padding: 10px 0; }
}
