/* ===================================
   FieldAgent Landing Page
   Custom CSS
   =================================== */

/* --- Tokens --- */
:root {
  --bg: #FDFCF8;
  --bg-alt: #F5F0E6;
  --ink: #1C1917;
  --ink-light: #78716C;
  --ink-faint: #A8A29E;
  --accent: #D97706;
  --accent-light: #FEF3C7;
  --white: #FFFFFF;
  --border: #E7E5E4;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Figtree', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--bg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  font-family: 'Figtree', sans-serif;
}

/* --- Hero --- */
.hero {
  background: var(--ink);
  padding: 80px 40px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217,119,6,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--bg);
  margin-bottom: 24px;
  line-height: 1.05;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--ink-faint);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: var(--ink-faint);
}

/* --- Phone Mockup --- */
.phone-mockup {
  background: #111111;
  border-radius: 36px;
  padding: 20px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 16px;
}

.phone-dots {
  display: flex;
  gap: 5px;
}

.phone-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.phone-time {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  font-family: 'Figtree', sans-serif;
}

.phone-content {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
}

.msg-system, .msg-customer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.msg-bubble {
  font-size: 0.78rem;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.5;
  font-family: 'Figtree', sans-serif;
}

.msg-bubble.system {
  background: rgba(217,119,6,0.15);
  color: #FCD34D;
  border-bottom-left-radius: 4px;
}

.msg-bubble.you {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  width: 85%;
}

.schedule-block {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 12px;
  margin-top: 4px;
}

.schedule-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.72rem;
}

.schedule-row:last-child { border-bottom: none; }

.schedule-row .time {
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

.schedule-row .job {
  color: rgba(255,255,255,0.7);
}

.status {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status.done { background: rgba(16,185,129,0.15); color: #6EE7B7; }
.status.active { background: rgba(245,158,11,0.2); color: #FCD34D; }
.status { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); }

.ai-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: #FCD34D;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  padding-left: 2px;
}

.ai-dot {
  width: 6px;
  height: 6px;
  background: #FCD34D;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* --- Industries --- */
.industries {
  background: var(--accent);
  padding: 28px 40px;
}

.industries-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.industries-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0,0,0,0.5);
  white-space: nowrap;
}

.industries-grid {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.industry-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(0,0,0,0.75);
}

.industry-icon {
  opacity: 0.7;
  display: flex;
}

.industry-divider {
  width: 1px;
  height: 20px;
  background: rgba(0,0,0,0.15);
}

/* --- Section shared --- */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--ink);
  max-width: 600px;
}

.section-header {
  margin-bottom: 56px;
}

/* --- Capabilities --- */
.capabilities {
  padding: 100px 40px;
  background: var(--bg);
}

.capabilities-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.cap-card {
  background: var(--white);
  padding: 40px 36px;
  position: relative;
  border: 1px solid var(--border);
}

.cap-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--bg-alt);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.cap-card h3 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 800;
}

.cap-card p {
  font-size: 0.9375rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.cap-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cap-detail span {
  font-size: 0.8rem;
  color: var(--ink-faint);
  padding-left: 14px;
  position: relative;
  font-weight: 500;
}

.cap-detail span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* --- How it Works --- */
.howitworks {
  padding: 100px 40px;
  background: var(--bg-alt);
}

.howitworks-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
}

.step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-line {
  width: 1px;
  height: 60px;
  background: var(--border);
  margin: 12px 0;
}

.step:last-child .step-line { display: none; }

.step-content h4 {
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 700;
  padding-top: 10px;
}

.step-content p {
  font-size: 0.9375rem;
  color: var(--ink-light);
  line-height: 1.7;
}

/* --- Numbers --- */
.numbers {
  background: var(--ink);
  padding: 64px 40px;
}

.numbers-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.numbers-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.number-block {
  padding: 0 40px;
}

.number-value {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bg);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.number-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

.number-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.1);
}

/* --- Closing --- */
.closing {
  padding: 100px 40px 120px;
  background: var(--bg);
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.closing-headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--ink);
  max-width: 700px;
  margin-bottom: 32px;
}

.closing-body {
  font-size: 1.0625rem;
  color: var(--ink-light);
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 20px;
}

.closing-quote {
  margin-top: 56px;
  padding: 40px 48px;
  background: var(--ink);
  max-width: 560px;
  position: relative;
}

.closing-quote::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 32px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 6rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.6;
}

.closing-quote p {
  font-size: 1.0625rem;
  color: var(--bg);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.closing-quote span {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* --- Footer --- */
.footer {
  background: var(--ink);
  padding: 64px 40px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--bg);
  display: block;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--ink-faint);
  max-width: 300px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col-head {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--bg); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .numbers-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .number-divider { display: none; }
  .number-block { padding: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 60px 24px 80px; }
  .industries-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .industries-grid { gap: 12px; }
  .industry-divider { display: none; }
  .capabilities { padding: 64px 24px; }
  .howitworks { padding: 64px 24px; }
  .numbers { padding: 48px 24px; }
  .numbers-row { grid-template-columns: 1fr; }
  .closing { padding: 64px 24px 80px; }
  .closing-quote { padding: 32px 28px; }
  .footer { padding: 48px 24px 24px; }
  .footer-links { grid-template-columns: 1fr; gap: 28px; }
  .step { gap: 20px; }
  .step-marker { flex-shrink: 0; }
  .cap-card { padding: 32px 24px; }
  .cap-number { font-size: 3rem; }
}