/* ============================================================
   Industries Page — Canistan Design System
   ============================================================ */

/* ---- Hero Section ---- */
.industries-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.industries-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.industries-hero-content {
  position: relative;
  z-index: 10;
}

.hero-orb-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: -200px;
  right: -100px;
  filter: blur(80px);
  animation: float-orb 8s ease-in-out infinite;
}

.hero-orb-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -150px;
  left: -100px;
  filter: blur(80px);
  animation: float-orb 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  animation: float-orb 12s ease-in-out infinite;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---- Section Divider ---- */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3), transparent);
  margin: 0 auto;
  max-width: 80%;
}

/* ---- Industry Overview Grid ---- */
.industry-card {
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.35) 0%, rgba(26, 26, 26, 0.4) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms ease, border-color 300ms ease;
  cursor: pointer;
}

.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08) 50%, transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.industry-card:hover::before {
  left: 100%;
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.2), 0 20px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(99, 102, 241, 0.3);
}

.industry-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 1.25rem;
}

.industry-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.industry-card p {
  color: #a1a1aa;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.industry-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #818cf8;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---- Tabbed Interface ---- */
.industry-tabs-wrapper {
  position: relative;
}

.industry-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.industry-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #a1a1aa;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 300ms ease;
  white-space: nowrap;
}

.industry-tab:hover {
  color: #d4d4d8;
  background: rgba(39, 39, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

.industry-tab.active {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.industry-tab-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.industry-tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.industry-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .industry-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.industry-viz {
  width: 100%;
  height: 350px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.5), rgba(26, 26, 26, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.industry-viz svg {
  width: 100%;
  height: 100%;
}

.industry-challenge {
  color: #a1a1aa;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(99, 102, 241, 0.4);
}

.industry-helps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.industry-helps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #d4d4d8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.industry-helps-list li .check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.industry-helps-list li .check-icon svg {
  width: 12px;
  height: 12px;
  color: white;
}

.industry-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.industry-metric-card {
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.4), rgba(26, 26, 26, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.industry-metric-card .metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.industry-metric-card .metric-label {
  font-size: 0.75rem;
  color: #71717a;
  margin-top: 0.25rem;
}

.industry-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #818cf8;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 300ms ease, color 300ms ease;
}

.industry-cta-link:hover {
  gap: 0.75rem;
  color: #a78bfa;
}

/* ---- Results Showcase ---- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

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

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

@media (max-width: 400px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.35) 0%, rgba(26, 26, 26, 0.4) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #a855f7, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #a1a1aa;
  font-weight: 500;
}

.stat-sparkline {
  margin-top: 1rem;
  height: 40px;
  position: relative;
}

.stat-sparkline svg {
  width: 100%;
  height: 100%;
}

/* Results chart container */
.results-chart-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 4rem;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.35), rgba(26, 26, 26, 0.4));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 2rem;
  overflow: hidden;
}

.results-chart-container svg {
  width: 100%;
  height: auto;
}

/* ---- Feature Cards ---- */
.feature-card {
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.35) 0%, rgba(26, 26, 26, 0.4) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08) 50%, transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.2), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 1.5rem;
  transition: transform 300ms ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #a1a1aa;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- CTA Section ---- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(100px);
}

/* ---- Animations ---- */
@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes flow-line {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease forwards;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
  .industries-hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 4rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .industry-tabs {
    gap: 0.375rem;
  }

  .industry-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .industry-viz {
    height: 250px;
  }

  .results-chart-container {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .industry-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .industry-tab {
    flex-shrink: 0;
  }
}
