/* ============================================================
   TRAKKEM PRO — Global Stylesheet v2
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --coral:      #ff846b;
  --coral-light:#ffc6bb;
  --coral-dark: #e0624a;
  --navy:       #283942;
  --navy-light: #4a6a7b;
  --bg:         #FDFCFB;
  --white:      #ffffff;
  --gray-50:    #f8f9fa;
  --gray-100:   #f0f0f0;
  --gray-200:   #e0e0e0;
  --gray-500:   #6c757d;
  --gray-800:   #333333;
  --font:       'Poppins', sans-serif;
  --radius-sm:  12px;
  --radius-md:  24px;
  --radius-lg:  50px;
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:  0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.14);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --section-pad: 100px 24px;
  --max-width:   1200px;
}

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

/* Language flash prevention — hide page until i18n translations are applied */
.lang-pending { visibility: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family:      var(--font);
  background-color: var(--bg);
  color:            var(--navy);
  line-height:      1.6;
  overflow-x:       hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* --- Typography --- */
h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1.05rem; color: var(--gray-500); line-height: 1.7; }

/* --- Utilities --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section    { padding: var(--section-pad); }
.text-coral { color: var(--coral); }
.text-navy  { color: var(--navy); }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 12px 40px;
}
.nav-logo { height: 80px; margin-top: 4px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link, .nav-dropdown-toggle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover, .nav-dropdown-toggle:hover {
  background: var(--coral-light);
  color: var(--coral-dark);
}
.nav-link.active {
  background: var(--coral);
  color: var(--white);
}
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: 20px;
  font-weight: 600;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--coral) !important; color: var(--white) !important; }

/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 3px;
  background: var(--gray-50);
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 16px;
  letter-spacing: 0.06em;
  transition: all 0.2s;
  font-family: inherit;
}
.lang-btn.active {
  background: var(--navy);
  color: var(--white);
}
.lang-btn:hover:not(.active) { color: var(--navy); background: var(--gray-100); }
@media (max-width:768px) { .lang-toggle { margin-left: 0; } }

/* NAVBAR ADAPTIVE MODE (For dark hero pages) */
body:has(.page-hero, .hero-dark) .nav:not(.scrolled) .nav-link,
body:has(.page-hero, .hero-dark) .nav:not(.scrolled) .nav-dropdown-toggle {
  color: var(--white);
}
body:has(.page-hero, .hero-dark) .nav:not(.scrolled) .nav-link:hover,
body:has(.page-hero, .hero-dark) .nav:not(.scrolled) .nav-dropdown-toggle:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
body:has(.page-hero, .hero-dark) .nav:not(.scrolled) .nav-logo {
  filter: brightness(0) invert(1);
}
body:has(.page-hero, .hero-dark) .nav:not(.scrolled) .nav-hamburger span {
  background: var(--white);
}
body:has(.page-hero, .hero-dark) .nav:not(.scrolled) .nav-dropdown-toggle .chevron {
  color: var(--white);
}

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown-toggle .chevron {
  transition: transform var(--transition);
  font-size: 0.7rem;
}
.nav-item.open .chevron { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}
.nav-item.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--gray-50); }
.dropdown-item-icon {
  width: 36px;
  height: 36px;
  background: var(--gray-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.dropdown-item-text small { display: block; color: var(--gray-500); font-size: 0.78rem; font-weight: 400; }
.dropdown-divider { border: none; border-top: 1px solid var(--gray-100); margin: 8px 0; }

/* Mobile Nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 100px 32px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a, .nav-mobile .mobile-section-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  display: block;
}
.nav-mobile .mobile-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  border-bottom: none;
  margin-top: 16px;
}
.nav-mobile a:hover { color: var(--coral); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255,132,107,0.35);
}
.btn-secondary {
  background: var(--navy);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--coral);
  padding-left: 0;
  padding-right: 0;
  font-size: 1rem;
}
.btn-ghost:hover { gap: 14px; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; border-radius: 20px; }

.btn-ghost .arrow { transition: transform var(--transition); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { max-width: 680px; }
.section-header.center { margin: 0 auto; text-align: center; }
.section-eyebrow {
  display: inline-block;
  width: fit-content;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  background: rgba(255,132,107,0.1);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-header h2 { color: var(--navy); margin-bottom: 16px; }
.section-header p  { color: var(--gray-500); font-size: 1.05rem; }
.section-header.center p { margin: 0 auto; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-down"]  { transform: translateY(-30px); }
[data-animate="fade-left"]  { transform: translateX(-40px); }
[data-animate="fade-right"] { transform: translateX(40px); }
[data-animate="scale"]      { transform: scale(0.92); }
[data-animate="fade"]       { transform: none; }

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-stagger].is-visible > * { opacity: 1; transform: none; }
[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.25s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.35s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 0.45s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* ============================================================
   HERO — Shared Base
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { color: var(--navy); margin-bottom: 24px; }
.hero h1 .highlight { color: var(--coral); }
.hero p  { font-size: 1.2rem; margin-bottom: 40px; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Dark hero variant */
.hero.hero-dark { background: linear-gradient(135deg, var(--navy) 0%, #1a2830 100%); }
.hero.hero-dark h1, .hero.hero-dark p { color: rgba(255,255,255,0.92); }

/* Gradient orbs in hero */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.4;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--coral-light), transparent 70%);
  top: -200px; right: -200px;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,106,123,0.5), transparent 70%);
  bottom: -100px; left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

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

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.product-card-image {
  background: var(--gray-50);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.product-card-image img { max-height: 200px; object-fit: contain; transition: transform 0.4s ease; }
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.product-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,132,107,0.12);
  color: var(--coral-dark);
  margin-bottom: 10px;
}
.product-card-body h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.3rem; }
.product-card-body p  { font-size: 0.92rem; flex: 1; }
.product-card-footer {
  padding: 0 28px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ============================================================
   HORIZONTAL PRODUCT CAROUSEL
   ============================================================ */
.carousel-track-wrap {
  overflow: hidden;
  user-select: none;
  cursor: grab;
}
.carousel-track-wrap:active { cursor: grabbing; }
.carousel-track {
  display: flex;
  gap: 24px;
  padding: 20px 4px 40px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-slide { flex: 0 0 340px; }
@media (max-width: 600px) { .carousel-slide { flex: 0 0 300px; } }

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
/* "Compare all products" link sits after the dots — push it right on desktop */
.carousel-controls > .btn {
  margin-left: auto;
}
@media (max-width: 600px) {
  .carousel-controls {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .carousel-controls > .btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  /* Keep prev/dots/next in one row */
  .carousel-controls .carousel-btn:first-child,
  .carousel-dots,
  .carousel-controls .carousel-btn:nth-child(3) {
    flex: 0 0 auto;
  }
  .carousel-controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .carousel-controls > .btn {
    flex: 0 0 100%;
    margin-top: 4px;
  }
}
.carousel-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--navy);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.carousel-btn:hover { border-color: var(--coral); color: var(--coral); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.carousel-dots {
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}
.carousel-dot.active { background: var(--coral); width: 24px; border-radius: 4px; }

/* ============================================================
   FEATURE/STAT STRIPS
   ============================================================ */
.stats-strip {
  background: var(--navy);
  padding: 60px 24px;
}
.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  text-align: center;
}
.stat-item .stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
  display: block;
}
.stat-item .stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-top: 6px;
  display: block;
}

/* ============================================================
   FEATURE ROWS (alternating text+image)
   ============================================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row-image img {
  width: 100%;
}
.feature-row-content h2 { color: var(--navy); margin-bottom: 20px; }
.feature-row-content p  { margin-bottom: 28px; }
.feature-list { list-style: none; padding: 0; margin-bottom: 32px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--gray-500);
}
.feature-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ff846b'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   ICON CARDS GRID
   ============================================================ */
.icon-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.icon-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
}
.icon-card:hover {
  border-color: var(--coral-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.icon-card-icon {
  width: 52px; height: 52px;
  background: rgba(255,132,107,0.10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--coral);
}
.icon-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }
.icon-card p  { font-size: 0.9rem; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-100);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
.faq-item.open .faq-icon { background: var(--coral); transform: rotate(45deg); }
.faq-icon::before { content: '+'; font-size: 1.2rem; color: var(--navy); line-height: 1; }
.faq-item.open .faq-icon::before { color: var(--white); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer-inner { padding-bottom: 20px; color: var(--gray-500); font-size: 0.96rem; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1d3040 100%);
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,132,107,0.2), transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}
.cta-banner h2  { color: var(--white); margin-bottom: 16px; }
.cta-banner p   { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 36px; }
.cta-banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   BADGES / LABELS
   ============================================================ */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--gray-100);
  color: var(--navy);
}
.tag.coral  { background: rgba(255,132,107,0.12); color: var(--coral-dark); }
.tag.navy   { background: var(--navy); color: var(--white); }
.tag.green  { background: #e8f5e9; color: #2e7d32; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 80px 24px 40px;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 80px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--coral); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--coral); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--coral); color: var(--white); }

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
  padding: 160px 24px 80px;
  background: linear-gradient(135deg, var(--navy) 0%, #1d3040 50%, #283942 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/world-trakkem-2.svg') center/cover no-repeat;
  opacity: 0.04;
  pointer-events: none;
}
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,0.72); font-size: 1.15rem; margin: 20px auto 0; max-width: 640px; }
.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.page-hero .breadcrumb a { color: var(--coral); }
.page-hero .breadcrumb span::before { content: '/ '; }

/* ============================================================
   PRODUCT SPECS TABLE
   ============================================================ */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.specs-table tr { border-bottom: 1px solid var(--gray-100); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td {
  padding: 14px 0;
  line-height: 1.5;
}
.specs-table td:first-child {
  color: var(--gray-500);
  font-weight: 500;
  width: 200px;
}
.specs-table td:last-child  { color: var(--navy); font-weight: 500; }

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,132,107,0.15);
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 8px; }
.pricing-card .desc { font-size: 0.85rem; margin-bottom: 24px; }
.price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--coral);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 4px;
}
.price-amount sup { font-size: 1rem; vertical-align: top; margin-top: 5px; }
.price-amount .period { font-size: 0.85rem; color: var(--gray-500); font-weight: 400; white-space: nowrap; }
.pricing-divider { border: none; border-top: 1px solid var(--gray-100); margin: 12px 0; }
.pricing-features { list-style: none; padding: 0; margin-bottom: 32px; flex: 1; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.pricing-features li i {
  color: var(--coral);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}
.pricing-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}
.pricing-toggle input { display: none; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-200);
  border-radius: 20px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  top: 4px; left: 4px;
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.pricing-toggle input:checked + .toggle-slider { background: var(--coral); }
.pricing-toggle input:checked + .toggle-slider::before { transform: translateX(24px); }
.save-badge { background: var(--coral); color: var(--white); font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.video-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.video-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(40,57,66,0.4), rgba(40,57,66,0.75));
  z-index: 1;
}
.video-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 40px;
}
.video-hero-content h2 { color: var(--white); margin-bottom: 16px; }
.video-hero-content p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px 20px; }
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 48px 28px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .feature-row { padding: 40px 0; }
  .icon-cards-grid { grid-template-columns: 1fr; }
  /* Home page: light hero — give nav a frosted background so hamburger is always visible */
  body:has(.hero:not(.hero-dark)) .nav:not(.scrolled) {
    background: rgba(253, 252, 251, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
  }
}

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

/* ============================================================
   PARALLAX WORLD BG (homepage)
   ============================================================ */
.world-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 1000px;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  animation: rotate-world-bg 120s linear infinite;
}

@keyframes rotate-world-bg {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--coral-light));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================================
   LOGO / IMAGE FILTER UTILITIES
   ============================================================ */
.img-white { filter: brightness(0) invert(1); }

/* ============================================================
   HOVER LIFT
   ============================================================ */
.hover-lift { transition: transform var(--transition), box-shadow var(--transition); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ============================================================
   USE-CASE CARD (inline image + text)
   ============================================================ */
.usecase-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  padding: 40px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}
.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.usecase-card.reverse .usecase-card-img { order: -1; }

.usecase-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.usecase-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.usecase-card-body h3 { color: var(--navy); margin-bottom: 14px; font-size: 1.8rem; }
.usecase-card-body p  { margin-bottom: 24px; font-size: 1.05rem; line-height: 1.6; color: var(--gray-600); }

@media (max-width: 900px) {
  .usecase-card { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .usecase-card.reverse .usecase-card-img { order: unset; }
  .usecase-card-img { min-height: 220px; }
  .usecase-card-body h3 { font-size: 1.4rem; }
  .usecase-card-body p  { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .usecase-card { padding: 20px; }
  .usecase-card-body h3 { font-size: 1.25rem; }
}



/* ============================================================
   APP SCREENSHOT MOCKUP
   ============================================================ */
.phone-float {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-float img {
  width: 100%;
  animation: float 5s ease-in-out infinite;
}
.laptop-shadow {
  box-shadow: 0 30px 80px rgba(40,57,66,0.15);
  border-radius: var(--radius-sm);
}

/* ============================================================
   3D GLOBE SECTION
   ============================================================ */
.globe-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  max-height: 100svh; /* safe area on mobile browsers */
  background: #020c15;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 120px; /* Space for navbar */
  box-sizing: border-box;
}
#plexus-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block; /* prevent inline gap */
}
.globe-overlay-title {
  position: relative;
  text-align: center;
  z-index: 10;
  pointer-events: none;
  width: 100%;
  padding-bottom: 20px;
  flex-shrink: 0;
}
.globe-overlay-title h2 { text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
#globe-viz {
  position: relative;
  width: 100%;
  flex: 1 1 auto; /* Takes remaining height below the title */
  z-index: 2;
  min-height: 0; /* prevent flex child from overflowing */
}

/* Responsive globe breakpoints */
@media (max-width: 768px) {
  .globe-section {
    height: auto;
    min-height: 520px;
    padding-top: 80px;
  }
  #globe-viz {
    min-height: 340px;
  }
}
@media (max-width: 480px) {
  .globe-section {
    padding-top: 70px;
    min-height: 460px;
  }
  #globe-viz {
    min-height: 280px;
  }
  .globe-overlay-title h2 { font-size: 1.5rem; }
  .globe-overlay-title p  { font-size: 0.85rem; }
}

/* Globe Tooltips/Cards */
.globe-marker-wrapper {
  position: relative;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}
.globe-marker-pulse {
  width: 14px; height: 14px;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s;
}
.globe-marker-wrapper.active .globe-marker-pulse {
  transform: scale(1.3);
}
.globe-marker-pulse::after {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  right: -12px; bottom: -12px;
  border-radius: 50%;
  border: 2px solid inherit;
  border-color: inherit;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.globe-card {
  position: absolute;
  top: -20px;
  left: 30px;
  background: #ffffff;
  color: #1a1a1a;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  font-family: var(--font);
  font-size: 0.85rem;
  width: 320px;
  pointer-events: auto;
  border: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  animation: fade-in-scale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.globe-tooltip-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 12px;
  position: relative;
}

.globe-tooltip-logo {
  background: #ff846b;
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(255,132,107,0.3);
}

.globe-tooltip-title { 
  font-weight: 800; 
  font-size: 0.98rem; 
  color: #222; 
  letter-spacing: -0.01em; 
  text-transform: uppercase;
}

.globe-tooltip-body { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}

/* Grid layout for Forerunner card */
.globe-tooltip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.globe-tooltip-row { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-weight: 600; 
  font-size: 0.8rem; 
  color: #555;
}

.globe-tooltip-row i { 
  width: 14px; 
  text-align: center; 
  color: #ff846b; /* Matching brand color for icons */
  font-size: 0.85rem;
}

.globe-tooltip-row span { 
  flex: 1;
}

.globe-tooltip-row.alert {
  background: #fff9e6; 
  color: #856404; 
  padding: 8px 12px; 
  border-radius: 8px; 
  margin: 4px -10px;
  border-left: 3px solid #ffcc00;
}

.globe-tooltip-row.alert strong { color: #222; font-weight: 800; }

.globe-marker-wrapper.active .globe-marker-pulse::after {
  animation: pulse-ring-active 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring-active {
  0% { transform: scale(0.6); opacity: 0; }
  50% { opacity: 1; border-width: 3px; }
  100% { transform: scale(2.0); opacity: 0; }
}

/* ============================================================
   VIDEO PROMO SECTIONS
   ============================================================ */
.video-promo-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.video-promo-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-promo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(14,26,34,0.65), rgba(14,26,34,0.92));
  z-index: 2;
}

.video-promo-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 24px;
}

.video-promo-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.video-promo-content p {
  font-size: 1.25rem;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .video-promo-section { height: 60vh; }
}
