/* Fore-Site marketing — overrides + page styles */

:root {
  /* Per prompt: swap deep blue token to the lighter #3b82f6 brand blue */
  --color-primary:        #3b82f6;
  --color-primary-hover:  #2563eb;
  --color-primary-pressed:#1d4ed8;
  --color-primary-light:  #dbeafe;
  --color-primary-subtle: #eff6ff;
  --color-info:           #3b82f6;
  --color-text-link:      #2563eb;
  --color-border-focus:   #3b82f6;
  --shadow-focus:         0 0 0 3px rgba(59,130,246,0.3);

  /* Module accents */
  --m-observations: #3b82f6;
  --m-incidents:    #ef4444;
  --m-capa:         #10b981;
  --m-inspections:  #9333ea;
  --m-hazards:      #f97316;
  --m-analytics:    #3b82f6;
  --m-tasks:        #0ea5e9;
  --m-notifications:#8b5cf6;
  --m-ai:           #3b82f6;

  --container: 1240px;
  --gutter: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }

/* ── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 16px;
  padding: 13px 22px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: all 160ms var(--ease-default);
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); box-shadow: var(--shadow-md); }
.btn-secondary { background: #fff; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-bg-tertiary); }
.btn-ghost { background: transparent; color: var(--color-text); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--color-bg-tertiary); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-dark { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--color-primary-pressed); border-color: #fff; }
.btn-light:hover { background: var(--color-primary-subtle); box-shadow: var(--shadow-md); }
.btn-on-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-on-dark:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.75); }

/* ── Layout helpers ────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-primary-subtle);
  color: var(--color-primary-pressed);
  padding: 6px 12px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.005em;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }

.overline-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-primary);
}

.h-display { font-family: var(--font-heading); font-size: 70px; font-weight: 700; line-height: 1.0; letter-spacing: -0.03em; color: var(--color-text); }
.h-1 { font-family: var(--font-heading); font-size: 56px; font-weight: 700; line-height: 1.0; letter-spacing: -0.025em; color: var(--color-text); }
.h-2 { font-family: var(--font-heading); font-size: 48px; font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; color: var(--color-text); }
.h-3 { font-family: var(--font-heading); font-size: 36px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--color-text); }
.h-4 { font-family: var(--font-heading); font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--color-text); }
.h-5 { font-family: var(--font-heading); font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; color: var(--color-text); }
.body-lg { font-size: 20px; line-height: 1.55; color: var(--color-text-secondary); }
.body { font-size: 17px; line-height: 1.55; color: var(--color-text-secondary); }
.body-sm { font-size: 15px; line-height: 1.55; color: var(--color-text-secondary); }
.mono { font-family: var(--font-mono); }

/* ── Cards ─────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--color-border-light);
  border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms var(--ease-default), transform 200ms var(--ease-default);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ── Pill / Badge ──────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
  background: var(--color-bg-secondary); color: var(--color-text-secondary);
}

/* ── Hero background wash ──────────────── */
.hero-wash {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.hero-wash::before {
  content: ""; position: absolute;
  top: -300px; left: -200px; width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(59,130,246,0.12), rgba(59,130,246,0) 60%);
  filter: blur(20px);
}
.hero-wash::after {
  content: ""; position: absolute;
  top: -200px; right: -200px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(137,63,253,0.08), rgba(137,63,253,0) 60%);
  filter: blur(20px);
}

/* ── Phone frame ──────────────────────── */
.phone {
  width: 320px; height: 650px;
  border-radius: 44px;
  background: #1c1917;
  padding: 10px;
  box-shadow:
    0 30px 80px rgba(28,25,23,0.18),
    0 12px 32px rgba(28,25,23,0.12),
    0 2px 8px rgba(28,25,23,0.06),
    inset 0 0 0 2px rgba(255,255,255,0.06);
  position: relative;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #fff;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}
.phone::after {
  content: ""; position: absolute;
  bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 130px; height: 5px; background: rgba(255,255,255,0.25); border-radius: 3px;
}

/* ── Status bar ─────────────────────── */
.statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 6px; font-size: 13px; font-weight: 600; color: var(--color-text);
}
.statusbar-dark { color: #fff; }
.statusbar-icons { display: flex; align-items: center; gap: 5px; }

/* ── Phone-screen animations ──────────── */
/* Step 1: subtle camera framing — feels like a person holding the phone trying to frame the hazard */
@keyframes camera-sway {
  0%   { transform: translate(0, 0) scale(1.02) rotate(0deg); }
  18%  { transform: translate(-3px, 1px) scale(1.025) rotate(-0.4deg); }
  34%  { transform: translate(2px, -2px) scale(1.02) rotate(0.3deg); }
  52%  { transform: translate(-1px, 2px) scale(1.022) rotate(-0.2deg); }
  68%  { transform: translate(3px, 0) scale(1.018) rotate(0.4deg); }
  84%  { transform: translate(-2px, -1px) scale(1.02) rotate(-0.15deg); }
  100% { transform: translate(0, 0) scale(1.02) rotate(0deg); }
}
.camera-sway { animation: camera-sway 6s ease-in-out infinite; transform-origin: center; }

/* Step 1: focus-mark pulse on the corner ticks */
@keyframes focus-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.05); }
}
.focus-pulse { animation: focus-pulse 1.6s ease-in-out infinite; }

/* Step 2: ring spinner around the AI icon, and tiny bullet spinners */
.ring-spinner {
  width: 110px; height: 110px; border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.18);
  border-top-color: #ffffff;
  border-right-color: rgba(255,255,255,0.55);
  animation: spin 1.4s linear infinite;
}
.bullet-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #ffffff;
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}

/* Step 3 & 4: slow auto-scroll of long content inside the phone */
@keyframes phone-scroll-3 {
  0%   { transform: translateY(0); }
  45%  { transform: translateY(var(--scroll-end, -380px)); }
  55%  { transform: translateY(var(--scroll-end, -380px)); }
  100% { transform: translateY(0); }
}
.phone-scroll-3 { animation: phone-scroll-3 14s ease-in-out 2s infinite backwards; }
.phone-scroll-4 { animation: phone-scroll-3 16s ease-in-out 2s infinite backwards; }

/* Step 5: pulse on the hero success icon */
@keyframes success-pulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(0,170,40,0.45); }
  50%      { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(0,170,40,0); }
}
.success-pulse { animation: success-pulse 2.4s ease-in-out infinite; }

/* ── Section dividers ────────────────── */
.section-light { background: var(--color-bg-tertiary); }
.section-gray { background: var(--color-bg-secondary); }
.section-dark { background: var(--color-bg-dark); color: var(--color-text-inverse); }

/* ── Nav ─────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border-light);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 36px;
}
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  font-size: 15px; font-weight: 500; color: var(--color-text-secondary);
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
  transition: all 160ms var(--ease-default);
}
.nav-link:hover { color: var(--color-text); background: var(--color-bg-tertiary); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ── Module icons ──────────────────────── */
.module-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Inputs ──────────────────────────── */
.input {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  width: 100%;
}
.input:focus { outline: none; border-color: var(--color-primary); box-shadow: var(--shadow-focus); }

/* ── Logo strip ─────────────────────── */
.logos-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.logos-row svg { opacity: 0.5; transition: opacity 200ms; }
.logos-row svg:hover { opacity: 0.85; }

/* ── Callout dot ─────────────────────── */
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(59,130,246,0.45); }
  100% { box-shadow: 0 0 0 14px rgba(59,130,246,0); }
}
.callout-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  animation: pulseRing 1.6s var(--ease-out) infinite;
}

/* ── AI reporting flow stage ───────────── */
.aiflow-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.aiflow-card {
  background: #fff; border: 1px solid var(--color-border-light);
  border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms var(--ease-default), transform 200ms var(--ease-default);
}
.aiflow-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ── Mobile section phone pair ─────────── */
.phone-pair-frame { display: flex; justify-content: center; }
.phone-pair { position: relative; width: 480px; height: 740px; }
.phone-pair-wash {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59,130,246,0.10), rgba(59,130,246,0) 65%);
  z-index: 0; pointer-events: none;
}

/* ── Two-tone feature panel (Desktop / Analytics) ── */
.feature-panel {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}
.feature-panel--text-left { grid-template-columns: 0.88fr 1.12fr; }
.feature-panel-visual {
  background: var(--color-bg-secondary);
  padding: 56px 48px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.feature-panel-visual::before {
  content: ""; position: absolute;
  width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.16), rgba(59,130,246,0) 68%);
  top: -130px; right: -120px; pointer-events: none;
}
.feature-panel--text-left .feature-panel-visual::before { right: auto; left: -120px; }
.feature-panel-text {
  background: var(--color-bg-tertiary);
  padding: 60px 52px;
  display: flex; flex-direction: column; justify-content: center;
}

/* ── Integration tile ──────────────────── */
.integration-tile {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; background: #fff;
  border: 1px solid var(--color-border-light); border-radius: 14px;
  font-size: 15px; font-weight: 600; color: var(--color-text);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 180ms var(--ease-default), transform 180ms var(--ease-default), border-color 180ms var(--ease-default);
}
.integration-tile:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); border-color: var(--color-border); }

/* ── Arrow text link ───────────────────── */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-primary); font-weight: 600; cursor: pointer;
  transition: gap 160ms var(--ease-default), color 160ms var(--ease-default);
}
.link-arrow:hover { color: var(--color-primary-hover); gap: 10px; }

/* ── Footer interactive ────────────────── */
.footer-social {
  display: inline-flex; color: rgba(255,255,255,0.55);
  transition: color 160ms var(--ease-default);
}
.footer-social:hover { color: #fff; }
.footer-subscribe {
  padding: 10px 18px; border-radius: 100px;
  background: var(--color-primary); border: none;
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 160ms var(--ease-default), transform 160ms var(--ease-default);
}
.footer-subscribe:hover { background: var(--color-primary-hover); }
.footer-subscribe:active { transform: scale(0.97); }

/* ── Module / feature card ─────────────── */
.feature-card {
  background: #fff; border: 1px solid var(--color-border-light);
  border-radius: 20px; padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 20px;
  transition: box-shadow 200ms var(--ease-default), transform 200ms var(--ease-default);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-bg-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-arrow-link { transition: gap 160ms var(--ease-default); }
.feature-card:hover .card-arrow-link { gap: 10px; }

/* ── Responsive ───────────────────────── */
@media (max-width: 1000px) {
  .aiflow-cards { grid-template-columns: repeat(3, 1fr); }
  .feature-panel, .feature-panel--text-left { grid-template-columns: 1fr; }
  .feature-panel-visual { order: -1; padding: 44px 32px; }
  .phone-pair { transform: scale(0.86); transform-origin: top center; }
  .phone-pair-frame { height: 640px; }
}
@media (max-width: 640px) {
  /* AI flow — single column */
  .aiflow-cards { grid-template-columns: 1fr; }
  .feature-panel-visual, .feature-panel-text { padding: 32px 24px; }
  /* Phone pair — scale from top-left so the right phone never clips, offset left to centre */
  .phone-pair { transform: scale(0.60); transform-origin: top left; }
  .phone-pair-frame { width: 100%; height: 450px; margin: 0 auto; overflow: hidden; padding-left: 24px; }
  /* Hero phone — scale down with padding on the sides */
  .hero-phone-wrap { transform: scale(0.8); transform-origin: top center; margin-bottom: -130px; }
  /* Desktop + Analytics mocks — zoom down so they fit without scrolling */
  .desktop-mock-wrap { zoom: 0.62; }
  .analytics-mock-wrap { zoom: 0.60; }
  /* Security badges — single column */
  .security-badges { grid-template-columns: 1fr !important; }
  /* Footer email form — stack vertically */
  .footer-email-form { flex-direction: column !important; }
  .footer-email-form .footer-subscribe { width: 100%; justify-content: center; }
  /* Footer layout — brand spans full width, nav cols drop to a shared row below */
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .h-display { font-size: 56px; }
  .h-1 { font-size: 44px; }
  .h-2 { font-size: 38px; }
  .h-3 { font-size: 30px; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .h-display { font-size: 40px; letter-spacing: -0.02em; }
  .h-1 { font-size: 34px; }
  .h-2 { font-size: 28px; }
  .h-3 { font-size: 24px; }
  .h-4 { font-size: 20px; }
  .body-lg { font-size: 17px; }
  .body { font-size: 16px; }
  :root { --gutter: 20px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
}

/* ── Focus / a11y ────────────────────── */
button:focus-visible, a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 6px; }

/* hide scrollbars but keep scroll */
.scroll-x { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

/* ── Testimonial carousel ────────────── */
@keyframes testimonialIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Contact / demo modal ────────────── */
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  animation: modalFade 160ms var(--ease-default);
  overflow-y: auto;
}
.modal-card {
  position: relative;
  width: 100%; max-width: 460px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-xl);
  padding: 36px 32px 32px;
  animation: modalRise 200ms var(--ease-default);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: none; cursor: pointer;
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  transition: background 160ms var(--ease-default), color 160ms var(--ease-default);
}
.modal-close:hover { background: var(--color-border-light); color: var(--color-text); }
.modal-field { display: flex; flex-direction: column; gap: 6px; }
.modal-field > span {
  font-size: 13px; font-weight: 600;
  color: var(--color-text); letter-spacing: -0.01em;
}
.modal-success-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--color-primary-subtle);
}
