/* ============================================
   IOTunnel Website - Design System
   Theme: Dark with orange accents (信创风格)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0f1c;
  --bg-secondary: #111827;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 140, 0, 0.4);
  --text-primary: #f0f0f0;
  --text-secondary: #a0aec0;
  --text-muted: #6b7280;
  --orange: #ff8c00;
  --orange-light: #ffa500;
  --orange-dark: #e67300;
  --gradient: linear-gradient(135deg, #ff8c00, #ffa500);
  --gradient-bg: linear-gradient(135deg, #0a0f1c 0%, #111827 50%, #0f172a 100%);
  --nav-height: 72px;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(255, 140, 0, 0.15);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--gradient-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background var(--transition);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.nav-brand .brand-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.lang-btn svg {
  width: 16px;
  height: 16px;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 100;
}

.lang-dropdown.show {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-option:hover,
.lang-option.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: all var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}

.btn-secondary:hover {
  background: rgba(255, 140, 0, 0.1);
  transform: translateY(-2px);
  color: var(--orange);
}

.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255, 140, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #ff8c00 0%, #ffa500 50%, #ff8c00 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease infinite;
}

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

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

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

.hero-stat .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

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

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* --- Dual Positioning (Home) --- */
.dual-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 48px 40px;
  transition: all var(--transition);
}

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

.dual-card .card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 16px;
}

.dual-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.dual-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.dual-card ul {
  list-style: none;
}

.dual-card ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.dual-card ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* --- Feature Detail (Features Page) --- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.feature-block:nth-child(even) {
  direction: rtl;
}

.feature-block:nth-child(even) > * {
  direction: ltr;
}

.feature-block-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-block-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-block-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

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

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-secondary);
}

.feature-list li .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 140, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange);
  font-size: 0.7rem;
}

/* --- Pricing Table --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--orange);
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-card .price-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card .pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

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

.pricing-card .pricing-features li .icon-check {
  color: var(--orange);
}

.pricing-card .pricing-features li .icon-x {
  color: var(--text-muted);
}

/* --- Download Cards --- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.download-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  color: inherit;
}

.download-card .os-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.download-card .os-icon svg {
  width: 48px;
  height: 48px;
  color: var(--text-secondary);
}

.download-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.download-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Code Block */
.code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.9rem;
  color: var(--orange);
  overflow-x: auto;
  position: relative;
}

.code-block .copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.code-block .copy-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table thead th {
  background: var(--bg-card);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.comparison-table tbody td {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--bg-card);
}

/* --- Footer --- */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-icp {
  color: var(--text-muted);
}

.footer-icp a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-icp a:hover {
  color: var(--orange);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--orange);
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-16 { margin-top: 64px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .dual-cards {
    grid-template-columns: 1fr;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-block:nth-child(even) {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    gap: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }
}

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

  .hero-cta {
    flex-direction: column;
  }

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

/* --- Contact Section --- */
.contact-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.contact-item svg {
  color: var(--orange);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--orange);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--orange-light);
  text-decoration: underline;
}

.contact-qr {
  text-align: center;
}

.contact-qr img {
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .contact-grid {
    flex-direction: column;
    gap: 30px;
  }
}

/* --- Domestic Innovation Platforms --- */
.domestic-section {
  margin-top: 3rem;
}

.domestic-category {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.domestic-subsection {
  margin-bottom: 2rem;
}

.domestic-subsection .badge {
  margin-bottom: 1rem;
  display: inline-block;
}

.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.domestic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.domestic-grid-small {
  grid-template-columns: repeat(4, 1fr);
}

.domestic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.domestic-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.domestic-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.domestic-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.domestic-card-compact {
  padding: 1rem 1.25rem;
}

.domestic-card-ondemand {
  opacity: 0.8;
}

.domestic-card-ondemand:hover {
  opacity: 1;
}

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

@media (max-width: 640px) {
  .domestic-grid,
  .domestic-grid-small {
    grid-template-columns: 1fr;
  }
  .domestic-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* --- RTL Support (Arabic) --- */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .feature-block:nth-child(even) {
  direction: ltr;
}

[dir="rtl"] .feature-block:nth-child(odd) {
  direction: rtl;
}

/* ============================================
   Industry Pages
   ============================================ */

/* Industry Grid (Main Page) */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.industry-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  color: var(--text-primary);
}

.industry-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 165, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.industry-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--orange);
}

.industry-card:hover .industry-icon {
  background: var(--gradient);
}

.industry-card:hover .industry-icon svg {
  stroke: var(--bg-primary);
}

.industry-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.industry-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.industry-link {
  font-size: 0.875rem;
  color: var(--orange);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
}

.industry-card:hover .industry-link {
  color: var(--orange-light);
}

/* Industry Hero Icon (Detail Pages) */
.industry-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 165, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.industry-hero-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--orange);
}

/* Challenge Grid */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.challenge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all var(--transition);
}

.challenge-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.challenge-number {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 140, 0, 0.15);
  line-height: 1;
  margin-bottom: 1rem;
}

.challenge-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Solution Grid */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.solution-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.solution-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 165, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.solution-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--orange);
}

.solution-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Use Case Grid */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.usecase-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.usecase-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.usecase-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Industry Page Responsive */
@media (max-width: 1024px) {
  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .challenge-grid,
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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