/* ==========================================================================
   HundteC — site styles (rules: Hundtec_DESIGN.md)
   Modular CSS with custom properties for future React/Next.js migration
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-gold: #F5C542;
  --color-gold-light: #FFE9A6;
  --color-gold-deep: #C9962B;
  --color-bg-primary: #050816;
  --color-bg-secondary: #0B1023;
  --color-bg-elevated: rgba(11, 16, 35, 0.6);
  --color-primary: #0F6FFF;
  --color-primary-hover: #3d8bff;
  --color-accent-purple: #4F46E5;
  --color-accent-cyan: #00D4FF;
  --color-white: #FFFFFF;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.72);
  --color-text-muted: rgba(255, 255, 255, 0.48);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.16);
  --color-glass: rgba(255, 255, 255, 0.04);
  --color-glass-hover: rgba(255, 255, 255, 0.08);

  /* Hundtec_DESIGN.md tokens (dark values) */
  --color-bg: #050816;
  --color-bg-input: rgba(255, 255, 255, 0.05);
  --color-bg-overlay: rgba(3, 6, 18, 0.72);
  --color-text: #FFFFFF;
  --color-accent: #0F6FFF;
  --color-accent-tint: rgba(15, 111, 255, 0.08);
  --color-brand-cyan: #00D4FF;
  --color-teal: #2BE0C8;
  --color-teal-deep: #0E8F84;
  --color-orange: #F08A24;
  --color-danger: #FF5C7A;
  --color-danger-text: #FFB3C1;
  --color-danger-tint: rgba(255, 92, 122, 0.12);
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #20BD5A;
  --color-bg-raised: #0B1023;
  --color-border-strong: rgba(255, 255, 255, 0.16);
  --color-accent-fill: #0A5CE0;
  --color-accent-fill-hover: #0957D0;
  --color-link: #5B9DFF;
  --color-teal-tint: rgba(43, 224, 200, 0.12); /* "New" badge background, Hundtec_DESIGN.md §5.2 */
  --shadow-none: none;
  --shadow-raised: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-focus: 0 0 0 3px var(--color-link);
  --color-border-input: rgba(255, 255, 255, 0.36);

  /* Gradients */

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: var(--font-display); /* alias until all references move to --font-display */
  --font-arabic: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;

  /* Font sizes (fluid scale) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.3vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(2rem, 1.6rem + 2vw, 3rem);
  --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-xsm: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;

  /* Layout */
  --container-max: 1280px;
  --container-padding: clamp(1.25rem, 4vw, 2rem);
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Effects */
  --shadow-glow: 0 0 40px rgba(15, 111, 255, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --blur-glass: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Keyboard focus on every interactive element (Hundtec_DESIGN.md §4.3) */
:focus-visible {
  outline: 1px solid transparent;
  box-shadow: var(--shadow-focus);
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 9999;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-accent-fill);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Placeholder styling for missing content */
.placeholder-text {
  color: var(--color-text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--space-3xl);
  position: relative;
}

/* Section header component */
.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.cta .section-header,
.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-header--left {
  text-align: start;
  margin-inline: 0;
}

.section-header__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: var(--space-sm);
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.section-header__desc {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Glass Card Component
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--color-bg-raised);
      border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1;
  padding: var(--space-xsm) var(--space-md);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-base);
}

.btn--primary {
  background: var(--color-accent-fill);
  color: var(--color-white);
  }

.btn--primary:hover {
      background: var(--color-accent-fill-hover);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-white);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  background: var(--color-accent-tint);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn--ghost:hover {
  color: var(--color-white);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-bg);
}

.btn--whatsapp:hover {
  background: var(--color-whatsapp-hover);
}

.btn--whatsapp svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn__icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform var(--transition-base);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Sticky Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition:
    background var(--transition-base),
    backdrop-filter var(--transition-base),
    border-color var(--transition-base);
}

.site-header.is-scrolled {
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  z-index: 1001;
  flex-shrink: 0;
  padding-block: var(--space-2xs);
}

/* Brand logo — site color scheme (blue/cyan on dark) */
.brand-logo {
  height: clamp(32px, 4.5vw, 44px);
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
}

.brand-logo--footer {
  height: 40px;
  max-width: 200px;
  margin-bottom: var(--space-sm);
}

/* Brand wordmark — "H u n d t e C", cyan like the hero tagline, glowing (replaces logo.png) */
.brand-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.38em;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-accent-cyan);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
  
}

.brand-wordmark--footer {
  display: inline-block;
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

@keyframes cyan-glow {
  0%, 100% { text-shadow: 0 0 6px rgba(0, 212, 255, 0.55), 0 0 16px rgba(0, 212, 255, 0.3); }
  50%      { text-shadow: 0 0 10px rgba(0, 212, 255, 0.85), 0 0 26px rgba(0, 212, 255, 0.45); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-wordmark {text-shadow:0 0 12px rgba(0, 212, 255, 0.35);}
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-xs);
  z-index: 1001;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: calc(var(--space-2xs) * -1);
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-white);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

/* Hero animated background — restored exactly as before at the owner's request 2026-09-25 */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__gradient {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  opacity: 0.4;
  animation: float-gradient 12s ease-in-out infinite;
}

.hero__gradient--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: calc(var(--space-3xl) * -1);
  background: radial-gradient(circle, rgba(15, 111, 255, 0.3) 0%, transparent 70%);
}

.hero__gradient--2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: calc(var(--space-3xl) * -1);
  background: radial-gradient(circle, rgba(79, 70, 229, 0.25) 0%, transparent 70%);
  animation-delay: -6s;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

@keyframes float-gradient {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding-block: var(--space-2xl);
}


/* Hero AI illustration — restored exactly as before at the owner's request 2026-09-25 (Hundtec_DESIGN.md §8 owner exception) */
.hero__visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__brain {
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.hero__brain svg {
  width: 280px;
  height: 280px;
}

.hero__node {
  animation: pulse-node 3s ease-in-out infinite;
}

.hero__node:nth-child(odd) { animation-delay: -1.5s; }

@keyframes pulse-node {
  0%, 100% { opacity: 1; r: 4; }
  50% { opacity: 0.6; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero__orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(40px);
}

.hero__orb--1 {
  width: 200px;
  height: 200px;
  background: rgba(15, 111, 255, 0.2);
  top: 10%;
  right: 10%;
}

.hero__orb--2 {
  width: 150px;
  height: 150px;
  background: rgba(0, 212, 255, 0.15);
  bottom: 15%;
  left: 5%;
}

.hero__card-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xsm) var(--space-sm);
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
  z-index: 3;
  animation: float-card 5s ease-in-out infinite;
}

.hero__card-float svg {
  width: 20px;
  height: 20px;
}

.hero__card-float--1 {
  top: 8%;
  left: 0;
  animation-delay: 0s;
}

.hero__card-float--2 {
  top: 45%;
  right: -5%;
  animation-delay: -1.5s;
}

.hero__card-float--3 {
  bottom: 12%;
  left: 10%;
  animation-delay: -3s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent-cyan);
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-full);
  }

.hero__heading,
.hero__heading-line,
.hero__tagline,
.py-hero__title,
.section-header__title,
.cta__title {
  text-wrap: balance;
}

.hero__heading {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.hero__heading-line {
  display: block;
      }

.hero__heading-line--accent {
        }

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

.hero__subheading {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: var(--space-xl);
    }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
    }

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
  }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.service-card {
  padding: var(--space-lg);
  }

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
      margin-bottom: var(--space-md);
  color: var(--color-accent);
  background: rgba(15, 111, 255, 0.1);
  border-radius: var(--radius-md);
  transition: background var(--transition-base), color var(--transition-base);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   AI Solutions Section
   -------------------------------------------------------------------------- */
.ai-solutions {
  background: var(--color-bg-secondary);
}

.ai-solutions__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.ai-solutions__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.ai-card {
  padding: var(--space-lg);
}

.ai-card__number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent-cyan);
  margin-bottom: var(--space-sm);
}

.ai-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.ai-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Industries Section
   -------------------------------------------------------------------------- */
.industries__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.industry-pill {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xsm) var(--space-md);
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base);
  cursor: default;
}

.industry-pill svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.industry-pill:hover {
  background: rgba(15, 111, 255, 0.1);
  border-color: rgba(15, 111, 255, 0.3);
  color: var(--color-white);
  }

/* --------------------------------------------------------------------------
   Products Section
   -------------------------------------------------------------------------- */
.products {
  background: var(--color-bg-secondary);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.product-card {
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.product-card__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0;
    border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  line-height: 1;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.product-card__link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-link);
  transition: color var(--transition-fast);
  display: inline-block;
  padding-block: var(--space-2xs);
}

.product-card__link:hover {
  color: var(--color-accent-cyan);
}

/* --------------------------------------------------------------------------
   Technology Stack Section
   -------------------------------------------------------------------------- */
.tech {
  background: var(--color-bg-secondary);
}

.tech__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.tech__item {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.tech__item:hover {
  border-color: rgba(15, 111, 255, 0.4);
    }

.tech__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-secondary);
}

.tech__item:hover .tech__name {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Why Digital Marvels Section
   -------------------------------------------------------------------------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.why-card {
  padding: var(--space-xl);
  text-align: center;
}

.why-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
    margin-bottom: var(--space-md);
  background: rgba(15, 111, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  margin-inline: auto;
}

.why-card__icon svg {
  width: 28px;
  height: 28px;
}

.why-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.why-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   About Us — Vision & Mission
   -------------------------------------------------------------------------- */
.about {
  background: var(--color-bg-secondary);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-md) var(--space-2xl);
  align-items: stretch;
}

.about-card {
  padding: var(--space-xl);
}

.about-card--main {
  grid-row: span 2;
  border-color: rgba(15, 111, 255, 0.2);
  background: none;
  border: 0;
  padding: 0;
}

.about-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 111, 255, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.about-card__icon svg {
  width: 24px;
  height: 24px;
}

.about-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.about-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.about-card__text:last-of-type {
  margin-bottom: 0;
}

.about-card__founder {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-accent-cyan);
}

.about-card__founder strong {
  color: var(--color-white);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta__inner {
  padding: var(--space-2xl);
  text-align: center;
  background: var(--color-bg-raised);
  border-color: rgba(15, 111, 255, 0.2);
}

.cta__inner:hover {
  transform: none;
}

.cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cta .section-header__title {
  font-size: var(--text-2xl);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cta__desc {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.cta__offices {
  display: grid;
  grid-template-columns: minmax(300px, 500px);
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.cta__office {
  padding: var(--space-lg);
}

.cta__office:hover {
  }

.cta__office-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-accent-cyan);
  line-height: 1.2;
}

.cta__office-address {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.cta__office-phone {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-2xs);
  transition: color var(--transition-fast);
}

.cta__office-phone:hover {
  color: var(--color-link);
}

.cta__office-link {
  font-size: var(--text-sm);
  color: var(--color-link);
  font-weight: 500;
}

.cta__office-link:hover {
  color: var(--color-accent-cyan);
}

.cta__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.cta__contact-item {
  text-align: center;
}

.cta__contact-label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xs);
}

.cta__contact-item a {
  color: var(--color-link);
  font-weight: 500;
  transition: color var(--transition-fast);
  display: inline-block;
  padding-block: var(--space-2xs);
}

.cta__contact-item a:hover {
  color: var(--color-accent-cyan);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-2xl) var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer__logo {
  display: inline-block;
}

.footer__about {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.footer__offices li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer__offices strong {
  color: var(--color-white);
  font-weight: 600;
}

.footer__offices a {
  color: var(--color-link);
  transition: color var(--transition-fast);
}

.footer__offices a:hover {
  color: var(--color-accent-cyan);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-accent-cyan);
  margin-bottom: var(--space-sm);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

.footer__nav ul,
.footer__info ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__nav a,
.footer__info a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__nav a:hover,
.footer__info a:hover {
  color: var(--color-white);
}

.footer__social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.footer__map {
  padding: var(--space-md);
  background: var(--color-glass);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  text-align: center;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__domain a {
  color: var(--color-link);
  transition: color var(--transition-fast);
}

.footer__domain a:hover {
  color: var(--color-accent-cyan);
}

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

  .hero__subheading {
      }

  .hero__actions {
      }

  .ai-solutions__layout {
    grid-template-columns: 1fr;
  }

  .section-header--left {
          }

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

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

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

  .about-card--main {
    grid-row: auto;
  }

  .hero__visual {
    height: 360px;
    margin-top: var(--space-lg);
  }

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .cta__inner {
    padding: var(--space-xl) var(--space-md);
  }

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

  .nav__toggle {
    display: flex;
  }

  /* Mobile menu (rebuilt 2026-09-23): a proper full-height panel — opaque, scrollable,
     rows with dividers and 48px tap targets, instead of links floating over the hero. */
  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-height) + var(--space-xs)) 0 max(var(--space-lg), env(safe-area-inset-bottom));
    background: var(--color-bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--transition-base),
      visibility var(--transition-base);
  }

  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-inline: var(--container-padding);
  }

  .nav__links li {
    width: 100%;
    text-align: start;
  }

  .nav__links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav__link {
    display: flex;
    align-items: center;
    min-height: 52px;
    width: 100%;
    font-size: var(--text-base);
    font-weight: 700;
    
  }

  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding-inline: var(--container-padding);
  }

  .nav__actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .ai-solutions__cards {
    grid-template-columns: 1fr;
  }

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

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

  .footer__bottom {
    flex-direction: column;
      }

  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta__actions .btn {
    width: 100%;
  }
}

.product-card__badge--new {
  background: var(--color-teal-tint);
  color: var(--color-teal);
  padding: var(--space-2xs) var(--space-xsm);
}

.product-card__cta {
  margin-top: var(--space-sm);
}

.py-hero {
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.py-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
}

.py-hero__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-raised);
}

.py-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.py-hero__subtitle {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent-cyan);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.py-hero__lead {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-lg);
}

.py-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.py-hero__shot {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-raised);
}

.py-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.py-flow__step {
  padding: var(--space-xl);
}

.py-flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-accent-fill);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.py-flow__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.py-flow__desc,
.py-shot__caption {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.py-shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-md);
}

.py-shot {
  text-align: center;
}

.py-shot__frame {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-raised);
  margin-bottom: var(--space-sm);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.py-shot:hover .py-shot__frame {
    border-color: var(--color-border-strong);
}

.py-shot__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.py-shot__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-2xs);
}

.py-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.py-fact {
  padding: var(--space-lg);
}

.py-fact__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xs);
}

.py-fact__value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text-primary);
}

@media (max-width: 1024px) {
  .py-hero__grid,
  .py-flow { grid-template-columns: minmax(0, 1fr); }
  .py-shots,
  .py-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .products__grid { grid-template-columns: 1fr; }
  .py-shots,
  .py-facts { grid-template-columns: minmax(0, 1fr); }
  .py-shot__frame { max-width: 320px; margin-inline: auto;box-shadow:var(--shadow-raised);}
}

.nav__link--new { color:var(--color-teal); }
.nav__link--new::after { content: "NEW"; font-size:var(--text-xs); letter-spacing:0.08em; margin-left: var(--space-2xs); padding: var(--space-2xs) var(--space-2xs); border-radius: var(--radius-full); background:var(--color-teal-tint); vertical-align: middle;line-height:1;}
html.is-ar .nav__link--new::after { content: "جديد"; margin-left: 0; margin-inline-start: var(--space-2xs); }

/* ---------- Consultation form (modal) ---------- */
.consult { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: var(--space-sm); }
.consult[hidden] { display: none; }
.consult__backdrop { position: absolute; inset: 0; background: var(--color-bg-overlay); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.consult__panel { position: relative; width: min(640px, 100%); max-height: calc(100vh - 2rem); overflow: auto; padding: var(--space-lg); background: rgba(11, 16, 35, 0.96); transform: none !important; animation: consultIn .28s ease-out; }
@keyframes consultIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.consult__close { position: absolute; top: var(--space-xsm); right: var(--space-xsm); width: 2.25rem; height: 2.25rem; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: transparent; color: var(--color-text-secondary); font-size:var(--text-xl); line-height: 1; cursor: pointer; }
.consult__close:hover { color: var(--color-white); border-color: var(--color-border-hover); }
.consult__eyebrow { margin: 0 0 var(--space-2xs); font-family: var(--font-display); font-size:var(--text-xs); letter-spacing:0.08em; text-transform: uppercase; color: var(--color-accent-cyan);font-weight:500;}
.consult__title { margin: 0 0 var(--space-xs); font-family: var(--font-heading); font-size:var(--text-2xl); line-height:1.2; color: var(--color-white);font-weight:700;letter-spacing:-0.01em;}
.consult__desc { margin: 0 0 var(--space-md); color: var(--color-text-secondary); line-height:1.6; }
.consult__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm) var(--space-sm); }
.consult__field { display: flex; flex-direction: column; gap: var(--space-2xs); }
.consult__field--wide { grid-column: 1 / -1; }
.consult__field span { font-size:var(--text-xs);  color: var(--color-text-secondary);font-weight:500;}
.consult__field input, .consult__field textarea { width: 100%; padding: var(--space-xsm) var(--space-sm); font: inherit; font-size:var(--text-base); color: var(--color-white); background: var(--color-bg-input); border: 1px solid var(--color-border-input); border-radius: var(--radius-md); outline: none; transition: border-color var(--transition-base), background var(--transition-base); resize: vertical; }
.consult__field input::placeholder, .consult__field textarea::placeholder { color: var(--color-text-muted); }
.consult__field input:focus, .consult__field textarea:focus { border-color: var(--color-accent); background: var(--color-accent-tint); box-shadow: var(--shadow-focus); }
.consult__field input:user-invalid, .consult__field textarea:user-invalid { border-color: var(--color-danger); }
.consult__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consult__error { margin: var(--space-sm) 0 0; padding: var(--space-xsm) var(--space-sm); border-radius: var(--radius-sm); background: var(--color-danger-tint); border: 1px solid rgba(255, 92, 122, 0.4); color: var(--color-danger-text); font-size:var(--text-sm); }
.consult__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); }
.consult__alt { color: var(--color-text-secondary); font-size:var(--text-sm); }
.consult__alt a { color: var(--color-accent-cyan); }
.consult__done { text-align: center; padding: var(--space-sm) 0; }
.consult__check { width: 64px; height: 64px; margin: 0 auto var(--space-sm); display: grid; place-items: center; border-radius: var(--radius-full); background:var(--color-teal); color:var(--color-bg); font-size:var(--text-2xl); font-weight: 700; }
.consult__done .btn { margin-top: var(--space-xs); }
body.consult-open { overflow: hidden; }
@media (max-width: 560px) { .consult__grid { grid-template-columns: 1fr; } .consult__panel { padding: var(--space-md) var(--space-sm); } }

/* ==========================================================================
   Products grid with 4 cards + Nawbah card icon (2026-09-23)
   ========================================================================== */
.products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1200px) { .products__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }  /* 5 products: 3 + 2 reads better than 4 + 1 orphan */
@media (max-width: 640px) { .products__grid { grid-template-columns: minmax(0, 1fr); } }
.products__grid .product-card { display: flex; flex-direction: column; align-items: flex-start; }
.products__grid .product-card__cta,
.products__grid .product-card__link { margin-top: auto; }
.product-card__head { display: flex; align-items: center; gap: var(--space-xsm); margin-bottom: var(--space-sm); }
.product-card__head .product-card__title { margin-bottom: 0; }
.product-card__icon { width: 44px; height: 44px; border-radius: var(--radius-md);  flex: none; }
.product-card__ar { font-family:var(--font-arabic); font-weight: 700; font-size:var(--text-base); color: var(--color-accent-cyan); margin-left: 0.25em; }

/* ===== EN / AR language switch (i18n.js) ===== */
.nav__menu { margin-inline-start: auto; }
.lang-switch { order: 3; margin-inline-start: var(--space-sm); display: inline-flex; align-items: center; gap: var(--space-2xs); padding: var(--space-2xs); border-radius: var(--radius-full); border: 1px solid var(--color-border-hover); background: var(--color-glass); cursor: pointer; font-family: var(--font-display); font-size:var(--text-xs); font-weight: 700; line-height: 1; z-index: 1002; }
.lang-switch span { padding: var(--space-xs) var(--space-xs); border-radius: var(--radius-full); color: var(--color-text-muted); transition: background .2s, color .2s; }
.lang-switch span[lang="ar"] { font-family:var(--font-arabic); font-size:var(--text-sm); padding-block: var(--space-2xs); }
.lang-switch span.on { background:var(--color-accent-fill); color:var(--color-text); }
.lang-switch:hover span:not(.on) { color: var(--color-text-primary); }
.lang-switch:focus-visible { outline: 1px solid transparent; box-shadow: var(--shadow-focus); }
.nav__toggle { order: 4; }
@media (max-width: 1024px) { .lang-switch { margin-inline-start: auto; margin-inline-end: var(--space-xsm); } }
html.i18n-pending body { visibility: hidden; }
/* Arabic: Tajawal for Arabic text, right-to-left layout */
html.is-ar { --font-body: var(--font-arabic); --font-display: var(--font-arabic); --font-heading: var(--font-arabic); }
html.is-ar body { letter-spacing: 0;line-height:1.7;}
html.is-ar body * { letter-spacing: 0; } /* Arabic: no tracking (breaks letter joining) — Hundtec_DESIGN.md §2.3 */
html.is-ar .brand-wordmark { font-family:'Satoshi', 'Inter', sans-serif; direction: ltr;letter-spacing:0.38em;}
.nav__logo { margin-inline-end: var(--space-md); flex: none; }
.nav__link { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1500px) { .nav__links { gap: var(--space-sm); } .nav__menu { gap: var(--space-sm); } .nav__actions .btn { padding-inline: var(--space-sm); } }
@media (min-width: 1025px) and (max-width: 1300px) { .nav__link { font-size:var(--text-xs); } .nav__links { gap: var(--space-xsm); } }
html.is-ar .nw-ar, html.is-ar .product-card__ar { margin-left: 0; margin-right: 0; margin-inline-start: .4em; }
html.is-ar .nw-ar { margin-right: .4em; margin-left: 0; }

/* Round product logos (the FOODSTED badge) — keeps the drop shadow circular. */
.product-card__icon--round { border-radius: var(--radius-full); }

/* PartYard brand: Part in the heading colour, Yard in the app accent. */
.brand-yard { color: var(--color-orange); }

/* ===== Store QR under the download badges (nawbah.html, partyard.html) — scans to /get/<app>,
   which sends iPhone to the App Store and Android to Google Play (.htaccess). Hidden on phones:
   nobody scans the screen they are holding. ===== */
.app-qr { display: flex; align-items: center; gap: var(--space-sm); width: fit-content; margin-top: var(--space-sm); padding: var(--space-xsm) var(--space-sm) var(--space-xsm) var(--space-xsm); border-radius: var(--radius-lg); background: var(--color-glass); border: 1px solid var(--color-border-hover); }
.app-qr img { display: block; width: 112px; height: 112px; padding: var(--space-2xs); border-radius: var(--radius-sm); background: #fff; }
.app-qr strong { display: block; font-family: var(--font-display); font-size:var(--text-base); color: var(--color-text-primary); }
.app-qr span { display: block; margin-top: var(--space-2xs); font-size:var(--text-xs); line-height:1.6; color: var(--color-text-secondary); max-width: 16rem; }
@media (max-width: 640px) { .app-qr { display: none; } }

/* Mobile menu: header controls stay above the open panel (2026-09-23) */
@media (max-width: 768px) {
  .site-header { z-index: 300; }
  .nav__toggle, .lang-switch, .nav__logo { position: relative; z-index: 310; }
  body.nav-open { overflow: hidden; }
}

/* The product film on the Vigilon pages (2026-09-24) */
.vg-film{margin:var(--space-xl) 0 0;display:grid;gap:var(--space-xsm);justify-items:center}
/* 2026-09-25 owner: preview 4 in × 4 in; the 16:9 film sits letterboxed inside the square, nothing cropped */
.vg-film video{width:4in;max-width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;display:block;border-radius:var(--radius-md);border:1px solid var(--color-border);background:var(--color-bg);box-shadow:0 30px 80px -30px rgba(0,0,0,.8)}
.vg-film figcaption{display:flex;justify-content:center;text-align:center;flex-wrap:wrap;align-items:center;gap:var(--space-xsm);font-size:var(--text-sm);color:var(--color-ink-3)}
.vg-film__links{display:flex;gap:var(--space-xs);flex-wrap:wrap}
.vg-film__links a{display:inline-flex;align-items:center;gap:var(--space-xs);border:1px solid var(--color-border);border-radius:var(--radius-full);padding:var(--space-2xs) var(--space-xsm);font-size:var(--text-xs);color:var(--color-ink-2);text-decoration:none}
.vg-film__links a:hover{border-color:var(--vg-cyan,#22d3ee);color:var(--color-text)}
@media (max-width:760px){.vg-film{margin-top:var(--space-lg)}}
.vg-film-link{margin:var(--space-lg) auto 0;text-align:center}

/* Phones: product cards use the spec's md padding so the "New — …" badge fits on one line */
@media (max-width: 480px) {
  .product-card {
    padding: var(--space-md);
  }
}

/* Phones: the floating chips crowd the hero, keep just the rings */
@media (max-width: 480px) {
  .hero__card-float {
    display: none;
  }

  .hero__brain svg {
    width: 220px;
    height: 220px;
  }
}

/* Product cards: the whole card opens the product (owner choice A, 2026-09-25).
   One link per card; its ::after covers the card ("stretched link"), so screen readers
   and keyboards still meet a single link. Hover = brighter border + arrow nudge, no lift. */
.products__grid .product-card {
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.products__grid .product-card :is(.product-card__cta, .product-card__link)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

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

.products__grid .product-card :is(.product-card__cta, .product-card__link) span[aria-hidden] {
  display: inline-block;
  transition: transform var(--transition-base);
}

.products__grid .product-card:hover :is(.product-card__cta, .product-card__link) span[aria-hidden] {
  transform: translateX(3px);
}

html.is-ar .products__grid .product-card:hover :is(.product-card__cta, .product-card__link) span[aria-hidden] {
  transform: translateX(-3px);
}

.products__grid .product-card:has(:focus-visible) {
  box-shadow: var(--shadow-focus);
}

.products__grid .product-card:hover .product-card__cta {
  background: var(--color-accent-fill-hover);
}

.products__grid .product-card:hover .product-card__link {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Hover on cards that are not links (owner, 2026-09-25): the original lift + glow,
   brighter border, icon tile fills. Product cards (links) keep the blue outline.
   -------------------------------------------------------------------------- */
.glass-card:not(.product-card):hover {
  border-color: var(--color-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

:is(.why-card__icon, .about-card__icon, .erp-mod__ico, .vg-card__ico, .nw-aud__ico) {
  transition: background var(--transition-base), color var(--transition-base);
}

:is(.why-card, .about-card, .erp-mod, .vg-card, .nw-aud__card):hover :is(.why-card__icon, .about-card__icon, .erp-mod__ico, .vg-card__ico, .nw-aud__ico) {
  background: var(--color-accent-fill);
  color: var(--color-text);
}

.erp-mod__ico svg {
  transition: stroke var(--transition-base);
}

.erp-mod:hover .erp-mod__ico svg {
  stroke: var(--color-text);
}

.vg-card--cp:hover .vg-card__ico {
  background: var(--color-teal);
  color: var(--color-bg);
}

.ai-card__number,
.ai-card__title,
.py-flow__title,
.service-card__title,
.service-card__icon {
  transition: color var(--transition-base);
}

.ai-card:hover .ai-card__title,
.py-flow__step:hover .py-flow__title {
  color: var(--color-link);
}

/* Our services: icon tile fills on hover (original behaviour) */
.service-card:hover .service-card__icon {
  background: var(--color-accent-fill);
  color: var(--color-text);
}

/* Product card tints, restored as before (owner, 2026-09-25) */
.product-card--featured {
  border-color: rgba(15, 111, 255, 0.3);
  background: linear-gradient(135deg, var(--color-accent-tint) 0%, rgba(79, 70, 229, 0.05) 100%);
}

.product-card--partyard {
  border-color: rgba(0, 212, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(15, 111, 255, 0.05) 100%);
}

.product-card--vigilon {
  border-color: rgba(0, 212, 255, 0.34);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.10) 0%, rgba(15, 111, 255, 0.05) 100%);
}

.product-card--vigilon-cp {
  border-color: rgba(43, 224, 200, 0.32);
  background: linear-gradient(135deg, rgba(43, 224, 200, 0.10) 0%, rgba(14, 143, 132, 0.05) 100%);
}
