/* ==========================================================================
   Gagner — company pages (about.php, careers.php)
   Extends css/styles.css: load that first for tokens, header, footer, buttons.
   ========================================================================== */

/* ---------- hero ---------- */
.company-hero {
  position: relative;
  background:
    radial-gradient(90% 120% at 18% -10%, rgba(69,54,224,0.09), transparent 55%),
    var(--surface);
  padding: calc(var(--nav-height) + 72px) 0 88px;
  text-align: center;
  overflow: hidden;

  /**Add-ons*/
  height: 100vh;
  display: grid;
  place-items: center;
}
.company-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}
.company-hero .eyebrow { justify-content: center; display: flex; }
.company-hero-title {
  font-size: clamp(34px, 5.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}
.gradient-text {
  background: linear-gradient(90deg, #6d4fe0, #3457e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.company-hero-sub {
  margin: 26px auto 0;
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-soft);
}

.sparkle { position: absolute; color: var(--brand-tint); pointer-events: none; z-index: 1; }
.sparkle svg { width: 100%; height: 100%; }
.sparkle-a { width: 18px; height: 18px; top: 12%; left: 7%; }
.sparkle-b { width: 13px; height: 13px; top: 8%; right: 10%; color: #d9d0ff; }
.sparkle-c { width: 22px; height: 22px; top: 60%; right: 6%; color: #cfe0ff; }
.sparkle-d { width: 12px; height: 12px; top: 68%; left: 4%; }

/* ---------- floating interactive hero icons ---------- */
.hero-float-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  perspective: 900px;
  pointer-events: none;
}
.hero-float {
  position: absolute;
  display: block;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  pointer-events: auto;
}
.hero-float-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-ambient);
  color: var(--brand);
  animation: heroFloatBob var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: transform .25s ease, box-shadow .25s ease, color .25s ease;
}
.hero-float-inner svg { width: 26px; height: 26px; }
.hero-float:hover .hero-float-inner {
  transform: scale(1.12);
  box-shadow: 0 12px 30px rgba(69,54,224,0.22);
  color: var(--brand-deep);
}
.hero-float-robot .hero-float-inner { width: 64px; height: 64px; }
.hero-float-robot .hero-float-inner svg { width: 30px; height: 30px; }
.hero-float-bolt .hero-float-inner { color: #e0a836; }
.hero-float-shield .hero-float-inner { color: #3aa373; }

@keyframes heroFloatBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float-inner { animation: none; }
  .hero-float { transition: none; }
}
@media (max-width: 900px) {
  .hero-float-network, .hero-float-shield { display: none; }
}
@media (max-width: 620px) {
  .hero-float-layer { display: none; }
}

/* ---------- infinite value marquee (about.php) ---------- */
.value-marquee-section { padding: 64px 0; overflow: hidden; background: var(--surface); }
.value-marquee-item {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: clamp(50px, 4.6vw, 50px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #d8dbe6;
  white-space: nowrap;
}
.value-marquee-item .dot { color: var(--brand-tint); font-size: 0.6em; }
.value-marquee-section .marquee-track.is-animating { animation-duration: 180s; }

/* ---------- shared content sections ---------- */
.company-section { padding: 100px 0; }
.company-section-muted { background: var(--surface-2); }
.company-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
@media (min-width: 860px) {
  .company-story { grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
}
.company-story-head h2 { max-width: 12ch; }
.company-story-body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 20px;
}
.company-story-body p:last-child { margin-bottom: 0; }

/* ---------- vision (reuses the homepage contrast-band pattern) ---------- */
.vision-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 32px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vision-icon svg { width: 24px; height: 24px; fill: #fff; }

/* ---------- core values ---------- */
.core-values-section { background: #07080b; }
.core-values-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 860px) {
  .core-values-layout { grid-template-columns: 0.7fr 1.3fr; gap: 56px; }
}
.core-values-head { position: sticky; top: calc(var(--nav-height) + 24px); align-self: start; }
.core-values-head h2 { max-width: 10ch; color: #fff; }

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  /* max-width: 460px; */
}

.value-card {
  position: relative;
  padding: 18px;
  min-height: 220px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 25% 105%, rgba(104,79,255,0.55), transparent 62%),
    #111320;
}
.value-card-num {
  position: absolute;
  top: -0.12em;
  right: -0.06em;
  z-index: 0;
  font-size: 128px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255,255,255,0.07);
  -webkit-text-stroke: 1px rgba(255,255,255,0.18);
  pointer-events: none;
  user-select: none;
}
.value-card h3 {
  position: relative;
  z-index: 1;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  max-width: 14ch;
}
.value-card-icon {
  position: relative;
  z-index: 1;
  margin-top: auto;
  align-self: flex-start;
  width: 100%;
  height: 74px;
  display: flex;
  align-items: flex-end;
}
.value-card-icon svg { width: 120px; height: 120px; filter: drop-shadow(0 10px 14px rgba(69,54,224,0.45)); }

.value-card-cta {
  background: linear-gradient(160deg, #e4ecfe, #ded0fb);
  padding: 20px;
  justify-content: space-between;
}
.value-card-cta .value-card-num { color: var(--brand-deep); -webkit-text-stroke: 1px rgba(50,42,168,0.18); opacity: 0.5; }
.value-card-cta h3 { color: var(--text); margin: 8px 0 0; max-width: none; }
.value-card-cta p { position: relative; z-index: 1; font-size: 12px; color: var(--text-soft); margin: 4px 0 0; }
.value-card-cta .value-card-icon {
  align-self: flex-end;
  width: 34px;
  height: 34px;
  margin-top: 12px;
  border-radius: 50%;
  background: #14161f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-card-cta .value-card-icon svg { width: 15px; height: 15px; filter: none; color: #fff; }

/* careers-specific */
.role-list { margin-top: 40px; display: flex; flex-direction: column; }
.role-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.role-row:first-child { padding-top: 0; }
.role-name { font-size: 16.5px; font-weight: 700; color: var(--text); }
.role-desc { font-size: 14px; color: var(--text-soft); margin-top: 4px; max-width: 52ch; }
.role-tag {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-tint);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.company-cta {
  text-align: center;
  padding: 90px 0 100px;
}
.company-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  margin: 32px auto 48px;
}
.company-stat { text-align: center; }
.company-stat-num {
  font-size: clamp(52px, 9vw, 92px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.company-stat-label {
  font-size: 13px !important;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}
@media (min-width: 720px) {
  .company-stats { flex-direction: row; justify-content: center; gap: 0; }
  .company-stat { flex: 1 1 0; max-width: 280px; padding: 0 40px; position: relative; }
  .company-stat + .company-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: var(--border);
  }
}
.company-cta h2 { margin-bottom: 16px; }
.company-cta p {color: #000; font-size: 50px; line-height: 1.6; }
.company-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
