/* =============================================
   iMark Technologies - Dark Premium Theme
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Custom Properties ---- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);

  --accent-red: #B22222;
  --accent-red-light: #D43333;
  --accent-gold: #E8C840;
  --accent-gold-light: #F0D860;

  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-glow: 0 0 30px rgba(178, 34, 34, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.4);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --container-max: 1200px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  font-weight: 300;
}

.text-accent {
  color: var(--accent-gold);
}

.text-gold {
  color: var(--accent-gold);
}

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

section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--text-secondary);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

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

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

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

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

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

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

.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: var(--accent-red);
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-base);
}

.nav-links a.nav-cta::after {
  display: none !important;
}

.nav-links a.nav-cta:hover {
  background: var(--accent-red-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--accent-red);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--accent-red-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.btn-gold {
  background: var(--accent-red);
  color: var(--text-primary);
}

.btn-gold:hover {
  background: var(--accent-red-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-bg.png') center/cover no-repeat;
  opacity: 0.4;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, var(--bg-primary) 30%, transparent 70%),
              linear-gradient(to top, var(--bg-primary) 5%, transparent 40%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  max-width: 600px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Video */
.hero-video {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.video-container {
  width: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all var(--transition-base);
}

.video-container:hover {
  border-color: var(--accent-red);
  box-shadow: 0 0 30px rgba(178, 34, 34, 0.3);
}

.video-thumbnail {
  position: relative;
}

.video-thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(178, 34, 34, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  transition: all var(--transition-base);
}

.video-container:hover .video-play {
  background: var(--accent-red);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  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: 60px 60px;
  pointer-events: none;
}

/* ---- Stats Bar ---- */
.stats-bar {
  padding: 3rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-base);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(178, 34, 34, 0.25);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(178, 34, 34, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-red);
}

.card-link:hover {
  gap: 0.5rem;
}

/* Glass Card */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: rgba(178, 34, 34, 0.35);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.glass-card.no-hover,
.card.no-hover {
  transition: none;
}

.glass-card.no-hover:hover,
.card.no-hover:hover {
  background: var(--bg-card);
  border-color: var(--border-glass);
  box-shadow: none;
  transform: none;
}

/* ---- Grids ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

/* ---- Services Section ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ---- Services Section Background ---- */
.services-section {
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/services-bg.png') center/cover no-repeat;
  opacity: 0.40;
  pointer-events: none;
}

.services-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 15%, transparent 85%, var(--bg-primary) 100%);
  pointer-events: none;
}

.services-section > .container {
  position: relative;
  z-index: 1;
}

.services-section .card {
  background: rgba(10, 10, 15, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- Products Section ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card .card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

/* Product Card with Background Image (homepage) */
.product-card-bg {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--bg-secondary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.product-card-bg:hover {
  border-color: #6B1515;
  box-shadow: 0 0 30px rgba(107, 21, 21, 0.3);
}

.product-card-overlay {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(10, 10, 15, 1) 100%),
    linear-gradient(to top, rgba(10, 10, 15, 0.92) 30%, rgba(10, 10, 15, 0.4) 100%);
  transition: background var(--transition-base);
}

.product-card-bg:hover .product-card-overlay {
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(10, 10, 15, 1) 100%),
    linear-gradient(to top, rgba(10, 10, 15, 0.95) 30%, rgba(10, 10, 15, 0.5) 100%);
}

.product-card-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
}

/* ---- Products Page Grid ---- */
.products-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

a.product-card-compact {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card-compact {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.product-card-compact .product-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.product-card-compact .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.product-card-compact:hover .product-img img {
  transform: scale(1.03);
}

.product-card-compact .product-body {
  padding: 1.5rem;
}

.product-card-compact .product-body .card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.product-card-compact .product-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-card-compact .product-body p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.product-card-compact .product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.375rem;
  margin-top: 0;
}

.product-card-compact .product-features li {
  font-size: 0.8125rem;
}

/* ---- Industries Section Background ---- */
.industries-section {
  position: relative;
  overflow: hidden;
}

.industries-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.industries-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.industries-bg-img.active {
  opacity: 1;
}

.industries-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.90) 0%, rgba(10, 10, 15, 0.30) 100%);
}

.industries-section > .container {
  position: relative;
  z-index: 2;
}

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

.industry-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(10, 10, 15, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.industry-item:hover {
  background: rgba(10, 10, 15, 0.75);
  border-color: #6B1515;
  box-shadow: 0 0 30px rgba(107, 21, 21, 0.3);
  color: var(--text-primary);
  transform: translateX(4px);
}

.industry-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(178, 34, 34, 0.12);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.testimonial-card .quote {
  flex: 1;
}

.testimonial-card .quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-card .quote::before {
  content: '\201C';
  font-size: 2rem;
  color: var(--accent-red);
  display: block;
  margin-bottom: 0.5rem;
  font-style: normal;
  line-height: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ---- CTA Section ---- */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(178, 34, 34, 0.1), rgba(212, 168, 67, 0.05));
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ---- Page Header ---- */
.page-header {
  padding: 10rem 0 4rem;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(178, 34, 34, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header h1 {
  position: relative;
}

.page-header p {
  position: relative;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ---- About Page ---- */
#about-overview {
  position: relative;
  overflow: hidden;
}

#about-overview::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: url('../images/about-visual.png') center / cover no-repeat;
  filter: blur(7px);
  opacity: 0.25;
  z-index: 0;
}

#about-overview > .container {
  position: relative;
  z-index: 1;
}

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

.about-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-card), rgba(178, 34, 34, 0.06));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

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

.highlight-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--accent-red);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(178, 34, 34, 0.3);
}

.highlight-icon {
  font-size: 1.75rem;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.highlight-text {
  display: flex;
  flex-direction: column;
}

.highlight-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

.highlight-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.value-card .card-icon {
  margin: 0 auto 1.25rem;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}

#markets {
  position: relative;
  overflow: hidden;
}

#markets::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: url('../images/markets-bg.png') center / cover no-repeat;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
}

#markets > .container {
  position: relative;
  z-index: 1;
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-items: center;
}

.market-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(10, 10, 15, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.market-card .card-icon {
  margin: 0 auto 1rem;
  background: rgba(212, 168, 67, 0.1);
  color: var(--accent-gold);
}

/* ---- Services Page ---- */
.service-detail {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-glass);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail .service-visual {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail .service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.service-detail .feature-list {
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.feature-list li::before {
  content: '→';
  color: var(--accent-red);
  font-weight: 600;
  flex-shrink: 0;
}

/* ---- Products Page ---- */
.product-detail {
  padding: 3rem;
  margin-bottom: 2rem;
}

.product-detail .card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.product-detail h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.product-features li::before {
  content: '◆';
  color: var(--accent-red);
  font-size: 0.5rem;
}

/* ---- Customer Wins ---- */
.customer-wins-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.customer-win-card {
  padding: 0;
  overflow: hidden;
}

.customer-win-card .video-container {
  display: block;
  width: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.customer-win-card .video-thumbnail {
  width: 100%;
}

.customer-win-card .video-thumbnail img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.customer-win-info {
  padding: 1.5rem;
}

.customer-win-info .card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.customer-win-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.customer-win-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ---- Industries Page Background ---- */
.industries-page-section {
  position: relative;
  overflow: hidden;
}

.industries-page-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/industries-bg-mosaic.png') center/cover no-repeat;
  opacity: 0.8;
}

.industries-page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.7) 0%, rgba(10, 10, 15, 0.25) 100%);
}

.industries-page-section > .container {
  position: relative;
  z-index: 1;
}

.industries-page-section .card {
  background: rgba(10, 10, 15, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- Industries Page (full) ---- */
.industries-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.industry-card {
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 240px;
  width: 100%;
  box-sizing: border-box;
}

.industry-card .card-icon {
  margin: 0 auto 1.25rem;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-red);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.contact-card .card-icon {
  flex-shrink: 0;
}

.contact-card h4 {
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.map-placeholder {
  margin-top: 1.5rem;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

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

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  max-width: 300px;
}

.footer h4 {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
  color: var(--accent-red);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: var(--text-primary);
}

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

/* ---- Scroll Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.6s; }
.stagger.visible > *:nth-child(8) { transition-delay: 0.7s; }
.stagger.visible > *:nth-child(9) { transition-delay: 0.8s; }
.stagger.visible > *:nth-child(10) { transition-delay: 0.9s; }
.stagger.visible > *:nth-child(11) { transition-delay: 1.0s; }
.stagger.visible > *:nth-child(12) { transition-delay: 1.1s; }
.stagger.visible > *:nth-child(13) { transition-delay: 1.2s; }
.stagger.visible > *:nth-child(14) { transition-delay: 1.3s; }
.stagger.visible > *:nth-child(15) { transition-delay: 1.4s; }
.stagger.visible > *:nth-child(16) { transition-delay: 1.5s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Service Detail Grid (services page) ---- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-detail-grid.reverse {
  direction: rtl;
}

.service-detail-grid.reverse > * {
  direction: ltr;
}

.service-detail-text .section-header {
  text-align: left;
  margin-bottom: 1rem;
}

.service-detail-text .section-header p {
  margin: 0;
}

.service-icon {
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg-card), rgba(178, 34, 34, 0.06));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.service-visual img {
  border: 1px solid var(--border-glass);
}

/* ---- About Visual Placeholder ---- */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-card), rgba(178, 34, 34, 0.06));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.placeholder-icon {
  font-size: 3rem;
  color: var(--accent-red);
}

.placeholder-label {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.placeholder-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4,
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-glass);
    padding: 2rem;
    gap: 1.5rem;
    transition: right var(--transition-base);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-hamburger {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .services-grid,
  .products-grid,
  .products-page-grid,
  .testimonials-grid,
  .customer-wins-grid,
  .about-content,
  .contact-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .industries-grid,
  .industries-full-grid,
  .markets-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-detail-grid.reverse {
    direction: ltr;
  }

  .about-content {
    gap: 2rem;
  }

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

  .product-features {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 3rem;
  }

  .hero-layout {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .video-thumbnail {
    width: 260px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

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

  .page-header {
    padding: 8rem 0 3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .grid-4,
  .industries-grid,
  .industries-full-grid,
  .markets-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ---- Product Detail Page ---- */
.product-overview-section {
  position: relative;
  overflow: hidden;
}

.product-overview-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.product-overview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(10, 10, 15, 0.85) 0%, rgba(10, 10, 15, 0.4) 50%, rgba(10, 10, 15, 0.85) 100%),
              linear-gradient(to bottom, var(--bg-primary) 0%, transparent 25%, transparent 75%, var(--bg-primary) 100%);
}

.product-overview-section > .container {
  position: relative;
  z-index: 1;
}

.product-overview-section .card {
  background: rgba(10, 10, 15, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-overview-section .card.no-hover:hover {
  background: rgba(10, 10, 15, 0.60);
}

.product-video-link {
  display: block;
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.product-video-link:hover {
  border-color: var(--accent-red);
  box-shadow: 0 0 30px rgba(178, 34, 34, 0.3);
}

.product-video-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.product-video-link .video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(178, 34, 34, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transition: all var(--transition-base);
}

.product-video-link:hover .video-play {
  background: var(--accent-red);
  transform: translate(-50%, -50%) scale(1.1);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-detail-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.product-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info h2 {
  margin-bottom: 1.25rem;
}

.product-detail-info p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.product-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2rem 0;
}

.product-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.product-highlight-item i {
  color: var(--accent-red);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* Why Cards */
.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.why-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(178, 34, 34, 0.12);
  border-radius: var(--radius-sm);
  margin: 0 auto 1.25rem;
  font-size: 1.25rem;
  color: var(--accent-red);
}

.why-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Approach Section Background */
.approach-section {
  position: relative;
  overflow: hidden;
}

.approach-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.8;
}

.approach-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.8) 0%, rgba(10, 10, 15, 0.1) 100%);
}

.approach-section > .container {
  position: relative;
  z-index: 1;
}

/* Approach Cards */
.approach-card {
  padding: 2.5rem 2rem;
  position: relative;
  background: rgba(10, 10, 15, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.approach-card:hover {
  background: rgba(178, 34, 34, 0.75);
  border-color: var(--accent-red);
  box-shadow: 0 8px 24px rgba(178, 34, 34, 0.3);
}

.approach-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(178, 34, 34, 0.25);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color var(--transition-base);
}

.approach-card:hover .approach-number {
  color: rgba(255, 255, 255, 0.2);
}

.approach-card:hover p,
.approach-card:hover .feature-list li {
  color: rgba(255, 255, 255, 0.85);
}

.approach-card:hover .feature-list li::before {
  color: rgba(255, 255, 255, 0.6);
}

.approach-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.approach-card p {
  font-size: 0.9375rem;
}

.approach-card .feature-list {
  margin-top: 1.25rem;
}

/* Deployment Cards */
.deployment-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.deployment-badge {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  padding: 0.375rem 0.875rem;
  background: rgba(232, 200, 64, 0.08);
  border: 1px solid rgba(232, 200, 64, 0.2);
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.deployment-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.deployment-card > p {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.deployment-card .feature-list {
  margin-bottom: 1.5rem;
  flex: 1;
}

.deployment-best-for {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-glass);
}

.deployment-best-for .card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-red);
  margin-bottom: 0.5rem;
}

.deployment-best-for p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.deployment-featured {
  border-color: rgba(178, 34, 34, 0.35);
  box-shadow: 0 0 30px rgba(178, 34, 34, 0.1);
}

/* Module Cards - Expand on Row Hover */
.module-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.module-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.module-card {
  background: rgba(10, 10, 15, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition-base);
  overflow: hidden;
}

.module-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.module-card-header .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.module-card-header h3 {
  font-size: 1rem;
  margin: 0;
}

.module-card-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
}

.module-card-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.module-row:hover .module-card {
  background: rgba(10, 10, 15, 0.80);
  border-color: rgba(178, 34, 34, 0.25);
  box-shadow: var(--shadow-glow);
}

.module-row:hover .module-card-body {
  max-height: 150px;
  opacity: 1;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .module-row {
    grid-template-columns: 1fr;
  }

  .module-card-body {
    max-height: none;
    opacity: 1;
    margin-top: 1rem;
  }
}

/* Modules Section Background */
.modules-section {
  position: relative;
  overflow: hidden;
}

.modules-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150vh;
  background-size: cover;
  background-position: center top;
  opacity: 0.4;
}

.modules-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 15%, transparent 85%, var(--bg-primary) 100%);
}

.modules-section > .container {
  position: relative;
  z-index: 1;
}

.modules-section .card,
.modules-section .glass-card {
  background: rgba(10, 10, 15, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modules-section .glass-card:hover {
  box-shadow: 0 0 30px rgba(178, 34, 34, 0.3);
  border-color: var(--accent-red);
}

/* Customer Wins Compact */
.customer-wins-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .customer-wins-compact {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* iPacks Cards */
.ipacks-card {
  border-left: 3px solid var(--accent-red);
}

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

  .product-highlights {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ---- CX Floating Side Tab ---- */
@keyframes cx-nudge {
  0%, 90%, 100% { transform: translateY(-50%); }
  92% { transform: translateY(-50%) translateX(-8px); }
  94% { transform: translateY(-50%) translateX(0); }
  96% { transform: translateY(-50%) translateX(-5px); }
  98% { transform: translateY(-50%) translateX(0); }
}

.cx-side-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  animation: cx-nudge 5s ease infinite;
  display: flex;
  align-items: center;
  text-decoration: none;
  overflow: hidden;
  border-radius: 12px 0 0 12px;
  background: #ffffff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  padding: 0.6rem;
  width: 64px;
  transition: width 0.35s ease, padding 0.35s ease;
}

.cx-side-tab:hover {
  width: 240px;
  padding: 0.6rem 1rem;
}

.cx-side-tab .cx-icon {
  width: auto;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.cx-side-tab:hover .cx-icon {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.cx-side-tab .cx-expanded {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  width: 0;
  white-space: nowrap;
  transition: opacity 0.25s ease;
  overflow: hidden;
}

.cx-side-tab:hover .cx-expanded {
  opacity: 1;
  width: auto;
}

.cx-side-tab .cx-logo-full {
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.cx-side-tab .cx-tagline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  line-height: 1.3;
  color: #333;
  font-weight: 500;
  border-left: 1px solid #ccc;
  padding-left: 0.75rem;
}

@media (max-width: 768px) {
  .cx-side-tab {
    top: auto;
    bottom: 1rem;
    transform: none;
    width: 58px;
    padding: 0.5rem;
  }

  .cx-side-tab:hover {
    width: 220px;
    padding: 0.5rem 0.75rem;
  }
}
