/* FieldOps Pro landing page — design tokens match the web app exactly. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0B0B0B;
  --card: #161616;
  --surface: #202020;
  --track: #262626;
  --border: #2E2E2E;

  --text: #F9FAFB;
  --text-2: #C7CDD6;
  --muted: #9CA3AF;

  --orange: #FF6A00;
  --orange-hover: #FF8A33;
  --on-orange: #0A0A0A;

  --green: #22C55E;
  --blue: #60A5FA;
  --amber: #FBBF24;

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Inter', sans-serif;

  --radius-card: 12px;
  --radius-control: 8px;
  --radius-pill: 999px;
  --ease: 150ms ease;

  color-scheme: dark;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

button, input, textarea, select { font-family: inherit; }

h1, h2, h3, .fo-display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.fo-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Nav ---------- */
.fo-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
/* Edge-to-edge bar: logo | centered links | actions. The two 1fr side
   columns keep the links centered; their auto minimum means a wide side
   pushes the links over instead of overlapping them. */
.fo-nav-inner {
  padding: 0 32px;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.fo-nav-inner > .fo-logo { justify-self: start; }
.fo-nav-inner > .fo-nav-links { justify-self: center; margin: 0 24px; }
.fo-nav-inner > .fo-nav-actions { justify-self: end; grid-column: 3; }
.fo-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.fo-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid rgba(255, 106, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fo-logo-mark svg { width: 20px; height: 20px; }
.fo-logo-word {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fo-logo-word-field { color: var(--text); }
.fo-logo-word-ops { color: var(--orange); }
.fo-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.fo-nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--ease);
}
.fo-nav-links a:hover { color: var(--text); }
.fo-nav-actions { display: flex; align-items: center; gap: 18px; }
/* "Log in": bold plain text in the far-right corner. */
.fo-nav-login {
  display: inline-flex;
  align-items: center;
  padding: 0 6px 0 10px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease);
}
.fo-nav-login:hover { color: var(--orange); }
.fo-nav-login:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }

.fo-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--text);
  cursor: pointer;
}
.fo-nav-toggle svg { width: 20px; height: 20px; }

.fo-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.fo-nav-mobile.is-open { display: flex; }
.fo-nav-mobile a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.fo-nav-mobile a:last-child { border-bottom: none; }

/* Nav collapses in steps: Features / How it works go first, then the
   remaining links, and only on phones do the two header buttons move
   into the mobile menu. */
@media (max-width: 1000px) {
  .fo-nav-links a[href$="#features"],
  .fo-nav-links a[href$="#how-it-works"] { display: none; }
  .fo-nav-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .fo-nav-links { display: none; }
}
@media (max-width: 560px) {
  .fo-nav-inner { padding: 0 16px; }
  .fo-nav-actions .fo-btn,
  .fo-nav-actions .fo-nav-login { display: none; }
}

/* ---------- Buttons ---------- */
.fo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-control);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), filter var(--ease), transform var(--ease);
  white-space: nowrap;
}
.fo-btn:active { transform: translateY(1px); }
.fo-btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--on-orange);
}
.fo-btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.fo-btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.fo-btn-secondary:hover { border-color: var(--muted); }
.fo-btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-2);
}
.fo-btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.fo-btn-block { width: 100%; }
.fo-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Pills ---------- */
.fo-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}
.fo-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ---------- Cards ---------- */
.fo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}

/* ---------- Hero ---------- */
.fo-hero {
  position: relative;
  margin-top: -64px; /* tucks the hero photo up underneath the translucent sticky nav */
  min-height: 860px;
  display: flex;
  overflow: hidden;
}
.fo-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.95) 85%, #0B0B0B 100%),
    url('/assets/img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.fo-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px 60px 56px;
  max-width: 1300px;
}

.fo-hero-headline-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  margin: 18px 0 36px;
}
.fo-hero-wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.84;
  font-size: clamp(72px, 15vw, 190px);
  flex: 1 1 auto;
  min-width: 0;
}
.fo-hero-wordmark-field, .fo-hero-wordmark-ops { display: block; }
.fo-hero-wordmark-field { color: var(--text); }
.fo-hero-wordmark-ops {
  color: var(--orange);
  text-shadow: 0 0 40px rgba(255, 106, 0, 0.5);
}

.fo-hero-tagline {
  flex: 0 1 360px;
  max-width: 360px;
  min-width: 240px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 22px;
}
.fo-hero-tagline-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  color: var(--orange);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
}
.fo-hero-ctas { margin-bottom: 12px; }
.fo-hero-note {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 10px;
}
.fo-hero-demo-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fo-hero-demo-link:hover { color: var(--text); }

.fo-hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  scroll-margin-top: 80px;
}
.fo-hero-card {
  background: rgba(22, 22, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
}
.fo-hero-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.fo-hero-card p {
  font-family: var(--font-ui);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  font-size: 13px;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .fo-hero { min-height: 0; }
  .fo-hero-bg {
    background-image:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.97) 85%, #0B0B0B 100%),
      url('/assets/img/hero.jpg');
  }
  .fo-hero-inner { padding: 88px 24px 40px; }
  .fo-hero-headline-row { margin: 14px 0 28px; }
  .fo-hero-tagline { max-width: none; flex-basis: 100%; }
  .fo-hero-cards { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.fo-section { padding: 72px 0; }
.fo-section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.fo-section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.fo-section-head p {
  font-family: var(--font-ui);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--text-2);
  font-size: 16px;
}
.fo-section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Feature cards ---------- */
.fo-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-control);
  background: rgba(255, 106, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.fo-feature-icon svg { width: 24px; height: 24px; stroke: var(--orange); }
.fo-card h3 { font-size: 18px; margin-bottom: 8px; }
.fo-card p {
  font-family: var(--font-ui);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--text-2);
  font-size: 15px;
}

/* ---------- Steps ---------- */
.fo-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .fo-steps { grid-template-columns: 1fr; }
}
.fo-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--on-orange);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 16px;
}

/* ---------- FAQ / accordion ---------- */
.fo-faq { max-width: 760px; margin: 0 auto; }
.fo-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  margin-bottom: 10px;
  background: var(--card);
  overflow: hidden;
}
.fo-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.fo-faq-q svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--muted);
  transition: transform var(--ease);
}
.fo-faq-item.is-open .fo-faq-q svg { transform: rotate(180deg); }
.fo-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}
.fo-faq-a-inner {
  padding: 0 20px 18px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}
.fo-faq-item.is-open .fo-faq-a { max-height: 240px; }

/* ---------- Contact form ---------- */
.fo-contact-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.fo-seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  margin-bottom: 24px;
}
.fo-seg button {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.fo-seg button.is-active { background: var(--orange); color: var(--on-orange); }

.fo-field { margin-bottom: 16px; }
.fo-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.fo-field .fo-optional { color: var(--muted); font-weight: 400; }
.fo-field input,
.fo-field textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.fo-field textarea { resize: vertical; min-height: 110px; }
.fo-field input::placeholder,
.fo-field textarea::placeholder { color: var(--muted); }
.fo-field input:focus,
.fo-field textarea:focus { border-color: var(--orange); }

.fo-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fo-form-msg {
  padding: 12px 14px;
  border-radius: var(--radius-control);
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}
.fo-form-msg.is-success { display: block; color: var(--green); background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.4); }
.fo-form-msg.is-error { display: block; color: #F87171; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.4); }

/* ---------- Footer ---------- */
.fo-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.fo-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fo-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}
.fo-footer-links a {
  color: var(--text-2);
  text-decoration: none;
}
.fo-footer-links a:hover { color: var(--text); }
.fo-footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Utility ---------- */
.fo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
