/* ============================================================
   i-Open Group — Design System
   Brand: Roboto | #0069A6 | #FF8705
   ============================================================ */

:root {
  /* Brand */
  --blue:         #0069A6;
  --blue-glow:    rgba(0, 105, 166, 0.25);
  --orange:       #FF8705;

  /* Backgrounds */
  --bg-void:      #04080f;   /* hero / deepest dark */
  --bg-dark:      #0a1525;   /* standard dark sections */
  --bg-surface:   #eef4fa;   /* light sections */
  --bg-white:     #ffffff;

  /* Text */
  --text-base:    #0f172a;
  --text-sub:     #4b5563;
  --text-on-dark: rgba(255,255,255,0.75);
  --text-muted:   rgba(255,255,255,0.40);

  /* Typography */
  --font:         'Arimo', Arial, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  /* Layout */
  --nav-h:        72px;
  --section-v:    104px;
  --container:    1240px;

  /* Effects */
  --shadow-card:  0 4px 24px rgba(0,0,0,0.08);
  --shadow-lift:  0 16px 48px rgba(0,0,0,0.14);
  --radius:       6px;
  --ease:         0.28s ease;
  --border-line:  rgba(255,255,255,0.08);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-base);
  background: #f5f9fc;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); }
::selection { background: var(--blue); color: #fff; }

/* ---- Layout utility ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(255,135,5,0.30);
}
.btn-primary:hover {
  background: #e87800;
  border-color: #e87800;
  box-shadow: 0 6px 20px rgba(255,135,5,0.40);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.50);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: #fff;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(0,105,166,0.30);
}
.btn-blue:hover {
  background: #005a8e;
  box-shadow: 0 6px 20px rgba(0,105,166,0.40);
  transform: translateY(-1px);
}

/* ============================================================
   NAVBAR  — 3 links, no dropdowns
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background 0.45s ease, backdrop-filter 0.45s ease,
              -webkit-backdrop-filter 0.45s ease,
              border-color 0.45s ease, box-shadow 0.45s ease;
}
.navbar.scrolled {
  background: rgba(4, 8, 15, 0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(255,255,255,0.06);
  box-shadow: 0 4px 32px rgba(0,0,0,0.35);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  position: relative;
  padding: 4px 0;
  transition: color var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  border-radius: 1px;
  transition: width 0.25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.nav-link.active {
  color: #fff;
}
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: auto;
  background: var(--orange);
  color: #0d1b2a; /* dark navy on orange = 7.5:1 contrast (WCAG AA) */
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
  box-shadow: 0 2px 10px rgba(255,135,5,0.25);
  flex-shrink: 0;
}
.nav-cta:hover {
  background: #e87800;
  box-shadow: 0 4px 16px rgba(255,135,5,0.35);
  transform: translateY(-1px);
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 16px;
}
/* Mobile-only menu CTA — hidden on desktop, shown inside open menu */
.nav-cta-mobile { display: none; }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   COMPANY HERO  — globe hero (index.html)
   ============================================================ */
.company-hero {
  margin-top: 0;
  height: 100vh;
  min-height: 560px;
  background: var(--bg-void);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Dot-grid background texture */
.company-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Left-side fade — keeps text readable over the globe */
.company-hero-fade {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 52%;
  background: linear-gradient(to right, rgba(4,8,15,0.68) 40%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Globe container — oversized, bleeds behind text */
.company-globe-bg {
  position: absolute;
  right: -14%;
  top: 50%;
  transform: translateY(-50%);
  width: 72vw;
  height: 72vw;
  z-index: 1;
}
/* Both canvases stacked in same container */
#globe-texture,
#globe-canvas {
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
/* Bottom layer — brand-blue monochrome texture + night lights */
#globe-texture {
  opacity: 0;
  transition: opacity 1.4s ease;
  filter: grayscale(1) sepia(1) hue-rotate(170deg) saturate(1.8) brightness(0.45);
}

/* Text content — above fade overlay */
.company-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 32px) 32px 48px;
  width: 100%;
}
.company-hero-text { max-width: 580px; }

.company-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
}
.company-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--orange);
  flex-shrink: 0;
}
.company-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 400;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}
.company-hero-text h1 .accent { color: var(--orange); }
.company-hero-text p {
  font-size: 16px;
  line-height: 1.80;
  color: var(--text-on-dark);
  max-width: 500px;
  margin-bottom: 44px;
}

/* Stats row */
.company-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.company-stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.company-stat-num .accent { color: var(--orange); }
.company-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.company-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Staggered entrance animations — text */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.company-hero-eyebrow  { animation: heroFadeUp 0.75s ease-out 0.10s both; }
.company-hero-text h1  { animation: heroFadeUp 0.75s ease-out 0.28s both; }
.company-hero-text > p { animation: heroFadeUp 0.75s ease-out 0.46s both; }
.company-stats         { animation: heroFadeUp 0.75s ease-out 0.62s both; }
.company-hero-ctas     { animation: heroFadeUp 0.75s ease-out 0.78s both; }

/* Globe entrance — scales up from 88% while text fades in.
   `scale` is a standalone CSS property (Level 5) that composes
   independently of the `transform: translateY(-50%)` on the element. */
@keyframes globeEnter {
  from { scale: 0.88; }
  to   { scale: 1; }
}
@keyframes globeCanvasFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.company-globe-bg {
  animation: globeEnter 2.0s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
/* Fade in the canvas 2D overlay slightly after the scale starts */
#globe-canvas {
  animation: globeCanvasFade 1.4s ease-out 0.5s both;
}

@media (prefers-reduced-motion: reduce) {
  .company-hero-eyebrow,
  .company-hero-text h1,
  .company-hero-text > p,
  .company-stats,
  .company-hero-ctas,
  .company-globe-bg,
  #globe-canvas { animation: none; }
}

@media (max-width: 768px) {
  .company-globe-bg {
    right: 50%;
    transform: translate(50%, -50%);
    width: min(96vw, 500px);
    height: min(96vw, 500px);
    opacity: 0.35;
  }
  .company-hero-fade  { width: 100%; }
  .company-hero-text  { max-width: 100%; }
  .company-stats      { gap: 20px; }
  .company-stat-num   { font-size: 30px; }
}

/* ============================================================
   SERVICES STRIP  — clean white, light border dividers
   ============================================================ */
.services-strip {
  background: #fff;
  padding: 72px 32px;
  border-top: 1px solid #dde6ef;
  border-bottom: 1px solid #dde6ef;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #dde6ef;
  border: 1px solid #dde6ef;
  border-radius: var(--radius);
  overflow: hidden;
}
.service-col {
  background: #fff;
  padding: 40px 32px;
  text-align: center;
  transition: background var(--ease);
}
.service-col:hover { background: #f6f9fc; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(0,105,166,0.08);
  border: 1px solid rgba(0,105,166,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: background var(--ease), border-color var(--ease);
}
.service-col:hover .service-icon {
  background: rgba(0,105,166,0.14);
  border-color: rgba(0,105,166,0.32);
}
.service-icon svg { width: 24px; height: 24px; color: var(--blue); }

.service-col h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-base);
  margin-bottom: 10px;
  letter-spacing: 0.1px;
}
.service-col p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-sub);
}

/* ============================================================
   PROFESSIONAL SERVICES  — light surface, premium cards
   ============================================================ */
.professional-services {
  padding: var(--section-v) 32px;
  background: var(--bg-surface);
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  text-align: center;
  margin-bottom: 14px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 400;
  color: var(--text-base);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
  line-height: 1.2;
  letter-spacing: 0px;
}


.products-cta-wrap { text-align: center; padding-top: 40px; }

/* Homepage static grid: force pointer on all card content so text doesn't revert to I-beam */
.products-grid[data-static] .product-card,
.products-grid[data-static] .product-card * { cursor: pointer; }

/* Homepage static grid: shine sweep on hover */
.products-grid[data-static] .product-card-img { overflow: hidden; }

.products-grid[data-static] .product-card:hover .product-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255,255,255,0.14) 50%,
    transparent 75%
  );
  transform: translateX(-100%);
  animation: static-card-shine 0.6s ease forwards;
  pointer-events: none;
  z-index: 4;
}

.products-grid[data-static] .product-card.active:hover .product-card-img::after {
  animation-duration: 1.5s;
}

@keyframes static-card-shine {
  to { transform: translateX(200%); }
}

/* ============================================================
   MISSION / VIDEO SECTION
   ============================================================ */
.mission-section {
  background: var(--bg-void);
  padding: var(--section-v) 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mission-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.mission-section::after {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0,105,166,0.20) 0%, transparent 65%);
  pointer-events: none;
}
.mission-section .container { position: relative; z-index: 1; }

.mission-section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.8vw, 42px);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.mission-section h2 .accent { color: var(--orange); }
.mission-sub {
  color: var(--text-on-dark);
  font-size: 15px;
  margin-bottom: 48px;
}

/* Video placeholder (shared) */
.video-placeholder {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.40);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 400px;
  transition: border-color var(--ease);
}
.video-placeholder:hover { border-color: rgba(255,135,5,0.35); }

.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 0 12px rgba(255,135,5,0.10), 0 0 0 24px rgba(255,135,5,0.05);
  transition: transform var(--ease), box-shadow var(--ease);
}
.video-placeholder:hover .play-btn {
  transform: scale(1.10);
  box-shadow: 0 0 0 14px rgba(255,135,5,0.15), 0 0 0 28px rgba(255,135,5,0.07);
}
.play-btn::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 11px 0 11px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}
.video-duration { color: var(--text-muted); font-size: 12px; letter-spacing: 1px; }
.video-label    { color: rgba(255,255,255,0.25); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; }

.hidden-video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  z-index: 2;
}
.video-placeholder.playing .hidden-video  { display: block; }
.video-placeholder.playing .play-btn,
.video-placeholder.playing .video-duration,
.video-placeholder.playing .video-label   { display: none; }

/* ============================================================
   INDUSTRY TABS
   ============================================================ */
.industry-section { padding: var(--section-v) 32px; background: #fff; }

.industry-section .video-placeholder {
  min-height: 340px;
  background: var(--bg-dark);
  margin-bottom: 60px;
}

.industry-section h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  color: var(--text-base);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 38px;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.tab-btn {
  padding: 10px 26px;
  border-radius: 30px;
  border: 1.5px solid #d1d9e0;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-sub);
  transition: all var(--ease);
  font-family: var(--font);
}
.tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.tab-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.tab-content { text-align: center; max-width: 640px; margin: 0 auto; }
.tab-pane { display: none; animation: tabFade 0.28s ease; }
.tab-pane.active { display: block; }
@keyframes tabFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-pane p {
  color: var(--text-sub);
  font-size: 15.5px;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.75;
}

/* ============================================================
   CTA / CONTACT TEASER
   ============================================================ */
.cta-section { padding: var(--section-v) 32px; background: var(--bg-surface); }

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.cta-text h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: var(--text-base);
  margin-bottom: 18px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.cta-text p  { font-size: 16px; color: var(--text-sub); line-height: 1.7; margin-bottom: 32px; }

.cta-img {
  height: 380px;
  border-radius: 12px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.cta-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.clients-strip { margin-top: 72px; padding-top: 52px; border-top: 1px solid #e2e8f0; }
.clients-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: #b0bec5;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.client-logo {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  filter: grayscale(1) opacity(0.55);
  transition: filter var(--ease);
}
.client-logo:hover {
  filter: grayscale(0) opacity(1);
}
.join-team-link {
  display: block;
  text-align: center;
  margin-top: 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--ease);
}
.join-team-link:hover { color: var(--orange); }

/* ============================================================
   PLANWORX PROMO
   ============================================================ */
.planworx-promo {
  background: var(--bg-void);
  padding: var(--section-v) 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.planworx-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(0,105,166,0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 70%, rgba(255,135,5,0.12) 0%, transparent 45%);
  pointer-events: none;
}
.planworx-promo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.planworx-promo .container { position: relative; z-index: 1; }

.planworx-logo {
  height: auto;
  width: 200px;
  display: block;
  margin: 0 auto 28px;
  opacity: 0.92;
}
.planworx-promo h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.planworx-promo p {
  font-size: 17px;
  color: var(--text-on-dark);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 44px;
}
.promo-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   PRESS & NEWS
   ============================================================ */
.press-news { padding: var(--section-v) 32px; background: var(--bg-surface); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--ease), transform var(--ease);
  display: flex;
  flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-5px); }

.news-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255,255,255,0.30);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.news-img-1 { background: url('../assets/images/main-page/press-and-news/The potential role of vertical agriculture.webp') center / cover no-repeat; }
.news-img-2 { background: url('../assets/images/main-page/press-and-news/The power of collaboration.webp') center / cover no-repeat; }
.news-img-3 { background: url('../assets/images/main-page/press-and-news/Winners farms.webp') center / cover no-repeat; }

.news-body { padding: 26px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--bg-surface);
  color: var(--text-sub);
}
.news-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-base);
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}
.news-date { font-size: 12px; color: #aaa; font-weight: 500; }

/* ============================================================
   CONTACT FORM  (global — all pages)
   ============================================================ */
.contact-section {
  padding: var(--section-v) 32px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.contact-section::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,105,166,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.contact-section .container { position: relative; z-index: 1; }

.contact-section .section-eyebrow { color: var(--orange); }
.contact-section h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.contact-intro {
  font-size: 15px;
  color: var(--text-on-dark);
  line-height: 1.75;
  text-align: center;
  max-width: 660px;
  margin: 0 auto 48px;
}

.form-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 48px;
  backdrop-filter: blur(8px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.60);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.form-group input,
.form-group select {
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-family: var(--font);
  color: #fff;
  background: rgba(255,255,255,0.06);
  transition: border-color var(--ease), background var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder { color: rgba(255,255,255,0.30); }
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(0,105,166,0.60);
  background: rgba(255,255,255,0.08);
}
.form-group select option { background: #1a2940; color: #fff; }

.select-wrap { position: relative; }
.select-wrap select { width: 100%; padding-right: 36px; cursor: pointer; }
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(255,255,255,0.40);
  pointer-events: none;
}

.form-submit { text-align: center; margin-top: 30px; }
.form-submit .btn { min-width: 200px; padding: 15px 40px; font-size: 13.5px; }

/* Textarea — same look as inputs */
.form-group textarea {
  padding: 13px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--ease), background var(--ease);
}
.form-group textarea::placeholder { color: rgba(255,255,255,0.30); }
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255,255,255,0.09);
}

/* ---- Contact Section Tabs ---- */
#contact-careers {
  display: block;
  height: 0;
  visibility: hidden;
}

/* Pane switching */
.contact-pane { display: none; }
.contact-pane.active {
  display: block;
  animation: paneFadeIn 0.32s ease;
}
@keyframes paneFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER BANNER
   ============================================================ */
.footer-banner {
  padding: 56px 32px;
  background: linear-gradient(105deg, #08131e 0%, #0d2438 55%, #0c3060 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-line);
}
.footer-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,135,5,0.10) 0%, transparent 55%);
  pointer-events: none;
}
.footer-banner .container { position: relative; z-index: 1; }
.footer-banner p {
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.45;
}
.footer-banner p .hl { color: var(--orange); }
.footer-banner a {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease);
}
.footer-banner a:hover { color: #ffaa44; }
.footer-banner-logo {
  height: auto;
  width: 90px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 3px;
}

/* ============================================================
   GLOBAL FOOTER  — simplified 4-column
   ============================================================ */
.site-footer {
  background: #060b14;
  padding: 72px 32px 36px;
  border-top: 1px solid var(--border-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-line);
}

/* footer brand column inherits footer-grid layout */
.footer-logo {
  display: block;
  margin-bottom: 14px;
}
.footer-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-on-dark);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-contact-info {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 2;
}
.footer-contact-info a { color: rgba(255,255,255,0.45); transition: color var(--ease); }
.footer-contact-info a:hover { color: var(--orange); }

.footer-col h4 {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  transition: color var(--ease);
}
.footer-col ul a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.55); /* increased from 0.25 — meets WCAG AA contrast on #060b14 */
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   HERO ORBS  — animated blurred colour blobs in page heroes
   ============================================================ */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.hero-orb-blue {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,105,166,0.70) 0%, transparent 68%);
  filter: blur(80px);
  top: -180px;
  left: -120px;
  animation: orb-drift-blue 11s ease-in-out infinite;
  z-index: 0;
}
.hero-orb-orange {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,135,5,0.55) 0%, transparent 55%);
  filter: blur(72px);
  bottom: -120px;
  right: 35%;
  animation: orb-drift-orange 14s ease-in-out infinite;
  z-index: 0;
}
@keyframes orb-drift-blue {
  0%   { transform: translate(0px,   0px); }
  33%  { transform: translate(260px, 90px); }
  66%  { transform: translate(100px, 160px); }
  100% { transform: translate(0px,   0px); }
}
@keyframes orb-drift-orange {
  0%   { transform: translate(0px,    0px); }
  33%  { transform: translate(-240px, -70px); }
  66%  { transform: translate(-90px,  -150px); }
  100% { transform: translate(0px,    0px); }
}


/* ============================================================
   FULL-SCREEN BLOCK  — products page (30vh hero + 70vh accordion)
   ============================================================ */
.hero-products-block {
  margin-top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-void);
}

/* Hero: exactly 30% of the block */
.hero-products-block .page-hero {
  margin-top: 0;
  flex: 0 0 30%;
}

/* Accordion: exactly 70% of the block */
.hero-products-block .products-section {
  flex: 0 0 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 32px;
  overflow: hidden;
}
.hero-products-block .products-section .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-products-block .products-grid { flex: 1; max-height: 520px; }

/* ============================================================
   PAGE HERO  — inner pages (Products, About)
   ============================================================ */
.page-hero {
  margin-top: var(--nav-h);
  background: var(--bg-void);
  padding: 80px 32px 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: 10%;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, var(--blue-glow) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 18px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.page-hero p {
  font-size: 18px;
  color: var(--text-on-dark);
  max-width: 580px;
  line-height: 1.7;
}

/* ============================================================
   PRODUCTS PAGE  — horizontal accordion
   ============================================================ */
.products-section {
  padding: var(--section-v) 32px;
  background: var(--bg-surface);
}

.products-grid {
  display: flex;
  flex-direction: row;
  gap: 10px;
  height: 520px;
  align-items: stretch;
}

/* ---- Card base: collapsed strip ---- */
.product-card {
  flex: 0 0 74px;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: flex 0.55s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

/* ---- Card active: expanded panel ---- */
.product-card.active {
  flex: 1;
  cursor: default;
  box-shadow: 0 16px 52px rgba(0,0,0,0.14);
}

/* Gradient top bar — reveals on active */
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  z-index: 4;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease 0.28s;
}
.product-card.active::before { transform: scaleX(1); }

/* Collapsed hover — slightly lighter overlay hint */
.product-card:not(.active):hover { box-shadow: 0 6px 28px rgba(0,0,0,0.13); }
.product-card:not(.active):hover .product-card-overlay { background: rgba(4,18,44,0.44); }

/* ---- Image panel (fills card when collapsed, fixed height when active) ---- */
.product-card-img {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: flex 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card.active .product-card-img { flex: 0 0 196px; }

/* Product card image backgrounds */
[data-product="crossings"] .product-card-img {
  background: url('../assets/images/products/Crossings.webp') center / cover no-repeat;
}
[data-product="geohub"] .product-card-img {
  background: url('../assets/images/products/GeoHub.webp') center / cover no-repeat;
}
[data-product="coreline"] .product-card-img {
  background: url('../assets/images/products/CORELine.webp') center / cover no-repeat;
}
[data-product="planworx"] .product-card-img {
  background: url('../assets/images/products/PlanworX.webp') center / cover no-repeat;
}
[data-product="agrilyze"] .product-card-img {
  background: url('../assets/images/products/Agrilyze.webp') center / cover no-repeat;
}

/* Overlay: dark blue + blur when collapsed, clears when active */
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4,18,44,0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 1;
  z-index: 1;
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
  pointer-events: none;
}
.product-card.active .product-card-overlay {
  background: rgba(0,105,166,0.14);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

/* Vertical product name — visible when collapsed */
.product-card-collapsed-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(255,255,255,0.90);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 3;
}
.product-card.active .product-card-collapsed-label { opacity: 0; }

/* Product icon — fades in when expanded */
.product-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease 0.32s, transform 0.3s ease 0.32s;
}
.product-card.active .product-card-icon { opacity: 1; transform: scale(1); }
.product-card-icon svg { width: 30px; height: 30px; color: rgba(255,255,255,0.82); }

/* ---- Content body — hidden when collapsed ---- */
.product-card-body {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.4s ease;
}
.product-card.active .product-card-body {
  max-height: 360px;
  opacity: 1;
  padding: 26px 28px 28px;
  transition: max-height 0.5s ease 0.14s, opacity 0.35s ease 0.22s, padding 0.4s ease 0.10s;
}

/* Category tag */
.product-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.product-name {
  margin-bottom: 12px;
}
.product-name img {
  height: auto;
  width: 110px;
  max-width: 100%;
  display: block;
}

.product-desc {
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 28px;
}

/* ============================================================
   BROCHURE MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 15, 0.80);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.28s ease;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
}
.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-surface);
  color: var(--text-sub);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), color var(--ease);
  font-family: var(--font);
}
.modal-close:hover { background: var(--orange); color: #fff; }

.modal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}
.modal-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-base);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.modal-intro {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Product interest checklist */
.modal-products-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 12px;
  display: block;
}
.products-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg-surface);
  border-radius: var(--radius);
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-base);
  cursor: pointer;
  transition: color var(--ease);
}
.check-label:hover { color: var(--blue); }
.check-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}

/* Modal form fields (reuse base, but lighter theme) */
.modal-form .form-grid { gap: 14px; }
.modal-form .form-group input,
.modal-form .form-group select {
  background: #fff;
  border: 1.5px solid #d1d9e6;
  color: var(--text-base);
}
.modal-form .form-group input::placeholder { color: #b0bec5; }
.modal-form .form-group input:focus,
.modal-form .form-group select:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,105,166,0.10);
}
.modal-form .form-group select { background: #fff; color: var(--text-base); }
.modal-form .form-group select option { background: #fff; color: var(--text-base); }
.modal-form .form-group label {
  color: #444;
  text-transform: uppercase;
}
.modal-form .select-wrap::after { color: #999; }
.modal-form .form-submit { margin-top: 24px; }
.modal-required-note {
  font-size: 11.5px;
  color: #aaa;
  text-align: center;
  margin-top: 14px;
}


/* ============================================================
   HERO TICKER
   ============================================================ */
.hero-ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  overflow: hidden;
  padding: 14px 0;
  background: rgba(4, 8, 15, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 130, 210, 0.5);
  z-index: 10;
}
.hero-ticker::before,
.hero-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.hero-ticker::before {
  left: 0;
  background: linear-gradient(to right, rgba(4,8,15,0.9), transparent);
}
.hero-ticker::after {
  right: 0;
  background: linear-gradient(to left, rgba(4,8,15,0.9), transparent);
}
.hero-ticker-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 28s linear infinite;
}
.hero-ticker-track span {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.80);
}
@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-10%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ticker-track { animation-play-state: paused; }
}

/* ============================================================
   HONEYPOT FIELD  — hidden field to catch spam bots
   ============================================================ */
.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   INLINE ALERT  — shared form submission error banner
   (dark theme is the base, since it's used on the 4 contact-section
   forms; .modal-form / .careers-modal override to the light variant)
   ============================================================ */
.inline-alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  border-radius: var(--radius);
  padding: 13px 15px;
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 18px;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.35);
  color: #fca5a5;
}
.inline-alert.show { display: flex; }
.inline-alert .dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 1px;
  background: rgba(239,68,68,0.25);
  color: #fecaca;
}
.inline-alert a { color: #fecaca; text-decoration: underline; }

.modal-form .inline-alert,
.careers-modal .inline-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.modal-form .inline-alert .dot,
.careers-modal .inline-alert .dot { background: #fee2e2; color: #b91c1c; }
.modal-form .inline-alert a,
.careers-modal .inline-alert a { color: #b91c1c; text-decoration: underline; }

/* Field-level validation error — brochure product checklist
   (the only form field that sits outside native validation) */
.products-checklist {
  border: 2px solid transparent;
  transition: border-color .15s ease, background .15s ease;
}
.products-checklist.field-error {
  border-color: #ef4444;
  background: #fef2f2;
}
.field-error-msg {
  display: none;
  align-items: center;
  gap: 6px;
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
  margin: 8px 0 0;
}
.field-error-msg.show { display: flex; }

