/* APCA Systems - Design System Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-deep: #020204;
  --bg-base: #050508;
  --bg-elevated: #0d0e16;
  --bg-glass: rgba(13, 14, 22, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  
  --primary: #c8ad73; /* Elegant Gold */
  --primary-rgb: 200, 173, 115;
  --accent-cyan: #06b6d4; /* Tech Cyan */
  --accent-blue: #3b82f6; /* Trust Blue */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  /* Gradients */
  --gradient-tech: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  --gradient-gold: linear-gradient(135deg, #e5c07b, #c8ad73, #a38548);
  --gradient-dark: linear-gradient(180deg, var(--bg-base), var(--bg-deep));
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  
  /* Glow Effects */
  --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.35);
  --glow-gold: 0 0 20px rgba(200, 173, 115, 0.25);
  
  /* Fonts */
  --font-en: 'Inter', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-en);
  overflow-x: hidden;
}

/* Language Override rules */
html[dir="rtl"] {
  font-family: var(--font-ar);
}

body {
  background: var(--gradient-dark);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}

/* Global particles canvas (all main pages) */
#apca-nodes {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body > header.apca-nav,
body > section,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

/* Home hero — nl.png background */
.hero-section.hero-section--nl::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('images/nl.png') center center / cover no-repeat;
  opacity: 0.42;
  pointer-events: none;
}

.hero-section.hero-section--nl::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 2, 4, 0.75) 0%,
    rgba(5, 5, 8, 0.55) 45%,
    rgba(2, 2, 4, 0.88) 100%
  );
  pointer-events: none;
}

.hero-section.hero-section--nl .hero-bg-shapes,
.hero-section.hero-section--nl > .container {
  position: relative;
  z-index: 1;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography & Links */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
  color: var(--text-muted);
}

/* Utility Layout Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

/* Header & Navigation */
header.apca-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(2, 2, 4, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

header.apca-nav.scrolled {
  padding: 0.5rem 0;
  background: rgba(2, 2, 4, 0.9);
}

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

.logo-con {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.logo-con:hover {
  background: rgba(200, 173, 115, 0.06);
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 0 10px rgba(200, 173, 115, 0.2));
}

.logo-con:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(200, 173, 115, 0.45));
}

.logo-svg {
  width: 45px;
  height: 45px;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.right-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: var(--glow-gold);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  background: var(--gradient-gold);
  color: #000;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-glass);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.glass-card * {
  position: relative;
  z-index: 1;
}

.glass-card:hover {
  border-color: rgba(200, 173, 115, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--glow-gold);
}

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

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.shape-1 {
  background: var(--accent-blue);
  width: 500px;
  height: 500px;
  top: -100px;
  right: -50px;
  animation: float 25s infinite alternate;
}

.shape-2 {
  background: var(--primary);
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -50px;
  animation: float 20s infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

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

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text-muted);
}

/* Company Profile Download (About page) */
.company-profile-section {
  background: rgba(255, 255, 255, 0.01);
}

.company-profile-section .section-header {
  margin-bottom: 2.5rem;
}

.company-profile-downloads {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 980px;
  margin: 0 auto;
}

.company-profile-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem 2.25rem;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-glass);
}

/* Language-based order: featured language first */
html[lang="ar"] .company-profile-card[data-profile-lang="ar"] { order: 1; }
html[lang="ar"] .company-profile-card[data-profile-lang="en"] { order: 2; }
html[lang="en"] .company-profile-card[data-profile-lang="en"] { order: 1; }
html[lang="en"] .company-profile-card[data-profile-lang="ar"] { order: 2; }

.company-profile-card.profile-card--featured {
  border-color: rgba(200, 173, 115, 0.55);
  box-shadow: 0 0 32px rgba(200, 173, 115, 0.12);
  background: rgba(200, 173, 115, 0.04);
}

.company-profile-card.profile-card--featured h3 {
  font-size: 1.45rem;
}

.company-profile-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.profile-lang-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.company-profile-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.company-profile-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.company-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  list-style: none;
  padding: 0;
}

.company-profile-meta li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.profile-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.profile-download-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-muted);
}

.company-profile-card.profile-card--featured .profile-download-btn {
  background: var(--gradient-gold);
  color: #000;
  border: none;
}

.company-profile-card.profile-card--featured .profile-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

.company-profile-icon {
  font-size: 3.5rem;
  line-height: 1;
  opacity: 0.85;
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.25));
}

.company-profile-card.profile-card--featured .company-profile-icon {
  font-size: 4.25rem;
}

@media (max-width: 768px) {
  .company-profile-card {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.5rem;
    text-align: center;
  }

  .company-profile-meta {
    justify-content: center;
  }

  .company-profile-icon {
    font-size: 2.75rem;
  }
}

/* Division / Services Cards Grid */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header h2 span {
  color: var(--primary);
}

.section-header p {
  font-size: 1.1rem;
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.div-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.div-icon {
  width: 60px;
  height: 60px;
  background: rgba(200, 173, 115, 0.1);
  border: 1px solid rgba(200, 173, 115, 0.2);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.div-card:hover .div-icon {
  background: var(--gradient-gold);
  color: #000;
}

.div-card h3 {
  margin-bottom: 1rem;
}

.div-features {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.div-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.div-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

/* Hot Products Showcase */
.products-showcase {
  background: #04050a;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
}

.prod-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.tab-btn:hover,
.tab-btn.active {
  color: #000;
  background: var(--gradient-gold);
  border-color: var(--primary);
  box-shadow: var(--glow-gold);
}

.prod-content-wrapper {
  min-height: 450px;
}

.prod-slide {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.prod-slide.active {
  display: grid;
}

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

.prod-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  aspect-ratio: 16/10;
}

.prod-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.prod-image-wrapper:hover .prod-image {
  transform: scale(1.05);
}

.badge-hot {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ef4444;
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 99px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 10;
}

.prod-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.prod-info h3 span {
  color: var(--primary);
}

.prod-desc {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.prod-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.spec-item h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.spec-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Integrations section */
.integrations-section {
  position: relative;
  overflow: hidden;
}

.integration-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.integrations-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.partner-logo-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.5;
  transition: var(--transition-smooth);
}

.partner-logo-card img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  filter: grayscale(1) brightness(1.5);
  transition: var(--transition-smooth);
}

.partner-logo-card:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-gold);
}

.partner-logo-card:hover img {
  filter: grayscale(0) brightness(1);
}

/* Client logos marquee */
.client-marquee-wrapper {
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 2.5rem 0;
  background: rgba(2,2,4,0.4);
  overflow: hidden;
}

.marquee-title {
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  gap: 4rem;
  animation: scrollMarquee 30s linear infinite;
  min-width: 100%;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  height: 40px;
  display: flex;
  align-items: center;
}

.marquee-item img {
  height: 100%;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.5) brightness(1.5);
  transition: var(--transition-fast);
}

.marquee-item:hover img {
  filter: grayscale(0) opacity(1) brightness(1);
}

/* RTL Adjustments for Marquee and Sliders */
html[dir="rtl"] .marquee-content {
  animation: scrollMarqueeRTL 30s linear infinite;
}

@keyframes scrollMarqueeRTL {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* Contact Page specific classes */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.5rem;
  color: var(--primary);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(200, 173, 115, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.info-text p, .info-text a {
  color: var(--text-muted);
}

.info-text a:hover {
  color: var(--primary);
}

/* RTL-safe contact items: icons align to inline-start (right in RTL) */
.footer-contact-list,
.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-contact-item,
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-contact-item:first-child {
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  line-height: 1.5;
}

.ltr-num {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

.whatsapp-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.info-icon-whatsapp {
  background: rgba(37, 211, 102, 0.1);
}

.info-icon-whatsapp .whatsapp-icon {
  margin-top: 0;
}

.whatsapp-link {
  color: #25d366;
}

.whatsapp-link:hover {
  color: #1ebe57;
}

a.map-link {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

a.map-link:hover {
  border-color: var(--primary);
}

a.map-link:hover .map-pin {
  transform: scale(1.15);
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(200, 173, 115, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Mock Map styling */
.mock-map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: #080911;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.map-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 20px 20px;
}

.map-radar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(200, 173, 115, 0.05);
  border: 1px dashed rgba(200, 173, 115, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: radarPulse 4s infinite linear;
}

@keyframes radarPulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

.map-pin {
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: var(--glow-gold), 0 0 0 8px rgba(200,173,115,0.2);
  position: absolute;
}

/* Footer Section */
footer.apca-footer {
  border-top: 1px solid var(--border-glass);
  background: #020204;
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-links h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-inline-start: 5px;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Menu Toggle for Mobile */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.75rem;
  cursor: pointer;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .hero-grid, .integration-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .prod-slide {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .cta-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Mobile menu hidden by default */
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .right-controls {
    display: flex;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Mobile Menu Active State */
.nav-links.mobile-active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(2, 2, 4, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  border-bottom: 1px solid var(--border-glass);
  gap: 1.5rem;
  text-align: center;
}

/* ==========================================================================
   Emil Kowalski UI/UX Pro Max Design Upgrades (Micro-Animations & Sonner Toasts)
   ========================================================================== */

/* Physical Click Scaling */
.btn-primary:active,
.btn-secondary:active,
.tab-btn:active,
.lang-btn:active,
.mobile-nav-toggle:active,
.nav-links a:active,
.partner-logo-card:active {
  transform: scale(0.96) !important;
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Premium Spring Transitions for Cards and Interactive Elements */
.glass-card, 
.partner-logo-card, 
.tab-btn, 
.lang-btn, 
.btn-primary, 
.btn-secondary {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2), 
              box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2), 
              border-color 0.3s ease, 
              background 0.3s ease !important;
}

/* Sonner-style Stacked Toast Notifications */
.apca-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  z-index: 10000;
  width: 360px;
  max-width: 100vw;
}

html[dir="rtl"] .apca-toast-container {
  right: auto;
  left: 24px;
}

.apca-toast {
  position: relative;
  background: rgba(13, 14, 22, 0.9);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform-origin: bottom center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  overflow: hidden;
}

.apca-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.apca-toast.success {
  border-left: 3px solid #10b981;
}
html[dir="rtl"] .apca-toast.success {
  border-left: none;
  border-right: 3px solid #10b981;
}

.apca-toast.error {
  border-left: 3px solid #ef4444;
}
html[dir="rtl"] .apca-toast.error {
  border-left: none;
  border-right: 3px solid #ef4444;
}

.apca-toast.info {
  border-left: 3px solid var(--primary);
}
html[dir="rtl"] .apca-toast.info {
  border-left: none;
  border-right: 3px solid var(--primary);
}

.apca-toast .toast-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apca-toast .toast-message {
  flex-grow: 1;
  font-weight: 500;
  line-height: 1.4;
}

.apca-toast .toast-close {
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
  font-size: 0.85rem;
  background: none;
  border: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.apca-toast .toast-close:hover {
  opacity: 1;
}

/* Stacking and scale offsets when multiple toasts are open */
.apca-toast-container .apca-toast:nth-last-child(1) {
  z-index: 100;
}
.apca-toast-container .apca-toast:nth-last-child(2) {
  transform: translateY(12px) scale(0.96);
  opacity: 0.9;
  filter: blur(0.5px);
  z-index: 90;
}
.apca-toast-container .apca-toast:nth-last-child(3) {
  transform: translateY(24px) scale(0.92);
  opacity: 0.7;
  filter: blur(1px);
  z-index: 80;
}
.apca-toast-container .apca-toast:nth-last-child(n+4) {
  transform: translateY(36px) scale(0.88);
  opacity: 0;
  filter: blur(2px);
  z-index: 70;
  pointer-events: none;
}

/* Email lists */
.email-list,
.footer-email-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.email-list a,
.footer-email-list a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.email-list a:hover,
.footer-email-list a:hover {
  color: var(--primary);
  padding-inline-start: 4px;
}

.footer-email-item {
  align-items: flex-start !important;
}

/* Digital clock — Amman time */
.apca-digital-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: rgba(200, 173, 115, 0.05);
  min-width: 108px;
  line-height: 1.2;
}

html[dir="rtl"] .apca-digital-clock {
  align-items: flex-start;
}

.clock-time {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(200, 173, 115, 0.35);
  direction: ltr;
  unicode-bidi: embed;
}

.clock-date {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  direction: ltr;
  unicode-bidi: embed;
}

.clock-blink {
  animation: clockBlink 1s step-end infinite;
}

@keyframes clockBlink {
  50% { opacity: 0.35; }
}

/* Hourglass widget in footer */
.apca-hourglass-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.04);
}

.hourglass-frame {
  position: relative;
  width: 22px;
  height: 32px;
  flex-shrink: 0;
}

.hourglass-frame::before,
.hourglass-frame::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
}

.hourglass-frame::before {
  top: 0;
  border-bottom: 14px solid rgba(200, 173, 115, 0.55);
}

.hourglass-frame::after {
  bottom: 0;
  border-top: 14px solid rgba(200, 173, 115, 0.25);
}

.hourglass-sand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(200, 173, 115, 0.8);
  animation: sandFall 2.4s ease-in-out infinite;
}

@keyframes sandFall {
  0%, 100% { top: 38%; opacity: 1; }
  50% { top: 62%; opacity: 0.4; }
}

.hourglass-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.footer-accent-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Scroll reveal polish */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.contact-info-card.reveal-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.contact-info-card.reveal-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.contact-info-card.reveal-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.contact-info-card.reveal-on-scroll:nth-child(5) { transition-delay: 0.32s; }

@media (max-width: 900px) {
  .apca-digital-clock {
    display: none;
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 42px;
  }

  .hourglass-label {
    white-space: normal;
    text-align: center;
    max-width: 180px;
  }
}

/* —— Proposal / product brief (Masna' Cloud) —— */
.proposal-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.proposal-hero-meta span {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
}

.proposal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.proposal-toc {
  position: sticky;
  top: 110px;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
}

.proposal-toc h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.proposal-toc a {
  display: block;
  font-size: 0.92rem;
  padding: 0.45rem 0.35rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.proposal-toc a:hover {
  color: var(--primary);
  background: rgba(200, 173, 115, 0.08);
}

.proposal-toc a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.proposal-toc a.proposal-toc-sub {
  font-size: 0.82rem;
  padding-inline-start: 0.85rem;
  color: var(--primary);
  border-bottom: none;
}

html:has(.proposal-layout) {
  scroll-padding-top: 7.5rem;
}

.proposal-doc section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 7.5rem;
}

.proposal-doc h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.proposal-doc h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.65rem;
  color: var(--text-main);
}

.proposal-doc p,
.proposal-doc li {
  color: #d1d5db;
  line-height: 1.85;
  font-size: 1rem;
}

/* Long proposal cards must stay readable (never tied to scroll-reveal ratio) */
.proposal-layout .proposal-doc,
.proposal-layout .proposal-toc,
.fa-card,
.fa-funnel {
  opacity: 1 !important;
  transform: none !important;
}

.proposal-doc ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.proposal-doc li {
  margin-bottom: 0.45rem;
}

.proposal-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.proposal-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(200, 173, 115, 0.12);
  border: 1px solid rgba(200, 173, 115, 0.25);
  color: var(--text-main);
}

.proposal-cta {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(200, 173, 115, 0.35);
  background: linear-gradient(135deg, rgba(200, 173, 115, 0.12), rgba(255, 255, 255, 0.02));
  text-align: center;
}

.proposal-cta-actions {
  justify-content: center;
  margin-top: 1rem;
  gap: 0.75rem;
}

.proposal-cta-actions .btn-primary,
.proposal-cta-actions .btn-secondary {
  flex: 0 1 auto;
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 640px) {
  .proposal-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .proposal-cta-actions .btn-primary,
  .proposal-cta-actions .btn-secondary {
    width: 100%;
  }
}

.product-flagship {
  grid-column: 1 / -1;
  border: 1px solid rgba(200, 173, 115, 0.35);
  background: linear-gradient(145deg, rgba(200, 173, 115, 0.08), rgba(255, 255, 255, 0.02));
}

@media (max-width: 900px) {
  .proposal-layout {
    grid-template-columns: 1fr;
  }

  .proposal-toc {
    position: static;
  }
}

/* —— Smart factories showcase —— */
.factory-hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.factory-hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.factory-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.factory-pillar {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.factory-pillar strong {
  display: block;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.factory-pillar span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.factory-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.factory-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.7;
}

.factory-platform-showcase {
  margin: 2.5rem 0 0;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 173, 115, 0.28);
  background: linear-gradient(145deg, rgba(200, 173, 115, 0.06), rgba(255, 255, 255, 0.02));
  text-align: center;
}

.factory-platform-showcase img {
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 1rem auto 0;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

@media (max-width: 900px) {
  .factory-split {
    grid-template-columns: 1fr;
  }
}

/* —— Factory 5.0 Assessment —— */
.fa-progress-wrap {
  margin-bottom: 1.25rem;
}

.fa-pdf-download {
  min-width: min(100%, 320px);
  text-align: center;
}

.fa-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.fa-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.fa-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--gradient-gold);
  transition: width 0.35s ease;
}

.fa-card {
  padding: 1.75rem 1.75rem 2rem;
}

.fa-card h2 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}

.fa-lead {
  color: var(--text-muted);
  margin-bottom: 1.35rem;
  line-height: 1.75;
  font-size: 0.95rem;
}

.fa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.fa-mini-grid,
.fa-consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0 0 1.35rem;
}

.fa-mini-card,
.fa-consult-card {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
}

.fa-mini-card strong,
.fa-consult-card strong {
  display: block;
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.fa-mini-card span,
.fa-consult-card span {
  color: var(--primary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.fa-card .form-group input,
.fa-card .form-group select,
.fa-card .form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
}

.fa-card .form-group input:focus,
.fa-card .form-group select:focus,
.fa-card .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(200, 173, 115, 0.12);
}

.fa-card .form-group select {
  cursor: pointer;
}

.fa-card .form-group select option {
  background: #0d0e16;
  color: #f3f4f6;
}

.fa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.fa-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.fa-chip:has(input:checked),
.fa-chip:hover {
  border-color: rgba(200, 173, 115, 0.45);
  color: var(--text-main);
  background: rgba(200, 173, 115, 0.1);
}

.fa-chip input {
  accent-color: var(--primary);
}

.fa-q {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem 1.15rem;
  margin: 0 0 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.fa-q legend {
  padding: 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: calc(100% - 0.5rem);
}

.fa-note {
  font-size: 0.82rem;
  color: var(--primary);
  margin: 0.35rem 0 0.75rem;
  line-height: 1.6;
}

.fa-score-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.fa-score-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
  min-height: 100%;
}

.fa-score-opt:hover,
.fa-score-opt:has(input:checked) {
  border-color: rgba(200, 173, 115, 0.5);
  background: rgba(200, 173, 115, 0.1);
}

.fa-score-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fa-score-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.fa-score-tip {
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.fa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

.fa-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--fa-band, var(--primary));
  border: 1px solid color-mix(in srgb, var(--fa-band, var(--primary)) 45%, transparent);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.fa-result-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.fa-result-meta span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.fa-score-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 1.5rem;
}

.fa-score-big {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

.fa-score-big small {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.fa-opp-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.fa-leak-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.fa-leak {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.18);
  background: rgba(127, 29, 29, 0.12);
}

.fa-opp {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
}

.fa-pilot {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(200, 173, 115, 0.35);
  background: linear-gradient(135deg, rgba(200, 173, 115, 0.1), rgba(255, 255, 255, 0.02));
  margin-bottom: 1.25rem;
}

.fa-pilot h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.fa-roadmap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

.fa-roadmap div {
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
}

.fa-roadmap span {
  display: block;
  font-size: 0.76rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.fa-roadmap strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-main);
}

.fa-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--primary);
  text-align: center;
}

@media (max-width: 768px) {
  .fa-grid,
  .fa-mini-grid,
  .fa-consult-grid,
  .fa-roadmap,
  .fa-result-meta,
  .fa-score-hero {
    grid-template-columns: 1fr;
  }

  .fa-score-row {
    grid-template-columns: 1fr 1fr;
  }

  .fa-actions {
    justify-content: stretch;
  }

  .fa-actions .btn-primary,
  .fa-actions .btn-secondary {
    flex: 1;
    text-align: center;
  }
}


