/* 043 · Seedsight (بصيرة الحقل) — 1:1 Reference-Faithful Agri-Vision Stylesheet */
:root {
  --ss-bg: #0a1428;
  --ss-bg2: #0e1b36;
  --ss-fg: #eaf0f7;
  --ss-muted: #9aa9c2;
  --ss-pink: #e8557d;
  --ss-mint: #7be0b5;
  --ss-amber: #ffc857;
  --ss-line: rgba(234, 240, 247, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ss-bg); color: var(--ss-fg); }

body {
  margin: 0;
  background: var(--ss-bg);
  color: var(--ss-fg);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, a, button, span, input, select, textarea { letter-spacing: 0; }
[dir="ltr"] { font-family: 'JetBrains Mono', monospace; }

/* Detached Floating Pill Navbar */
.ss-nav-outer {
  position: fixed;
  top: 16px;
  inset-inline: 0;
  z-index: 55;
  padding: 0 18px;
  pointer-events: none;
}

.ss-pill-nav {
  pointer-events: auto;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 7px 10px 7px 16px;
  padding-inline: 16px 10px;
  border-radius: 999px;
  background: rgba(10, 20, 40, 0.86);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(234, 240, 247, 0.16);
  box-shadow: 0 16px 40px rgba(4, 9, 20, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ss-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ss-fg);
  text-decoration: none;
  font-family: 'Readex Pro', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.ss-links {
  display: flex;
  align-items: center;
  gap: 13px;
}

.ss-links a {
  color: var(--ss-muted);
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ss-links a:hover { color: var(--ss-mint); }

.ss-btn-mint {
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: var(--ss-mint);
  color: #0a1428;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.ss-btn-ghost {
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(234, 240, 247, 0.22);
  background: rgba(14, 27, 54, 0.65);
  color: var(--ss-fg);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
}

/* Section 1: Botanical CV Hero */
.ss-hero {
  position: relative;
  min-height: 100dvh;
  padding: 112px clamp(20px, 4vw, 56px) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.ss-hero-bg { position: absolute; inset: 0; z-index: 0; }
.ss-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ss-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to left, rgba(10, 20, 40, 0.9) 0%, rgba(10, 20, 40, 0.54) 48%, rgba(10, 20, 40, 0.22) 100%);
}

.ss-hero-grid {
  position: relative;
  z-index: 5;
  max-width: 1320px;
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.ss-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--ss-mint);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ss-h1 {
  margin: 0 0 18px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(2.35rem, 4.8vw, 4.1rem);
  font-weight: 700;
  line-height: 1.12;
}

.ss-pink-em {
  font-style: italic;
  color: var(--ss-pink);
}

/* Right CV Detection Reticle + Telemetry Stack */
.ss-cv-hud {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ss-bbox-tag {
  padding: 8px 14px;
  border: 1.5px solid var(--ss-mint);
  background: rgba(10, 20, 40, 0.78);
  backdrop-filter: blur(8px);
  font-size: 0.76rem;
  color: var(--ss-mint);
}

.ss-bbox-tag.is-amber { border-color: var(--ss-amber); color: var(--ss-amber); }
.ss-bbox-tag.is-pink { border-color: var(--ss-pink); color: var(--ss-pink); }

.ss-hero-stats {
  position: relative;
  z-index: 5;
  max-width: 1320px;
  width: 100%;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--ss-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Crop & Herd Ticker Marquee */
.ss-ticker {
  background: var(--ss-bg2);
  border-block: 1px solid var(--ss-line);
  padding: 14px 0;
  overflow: hidden;
}

.ss-ticker-track {
  display: flex;
  width: max-content;
  gap: 32px;
  animation: ssSlide 28s linear infinite;
  font-size: 0.85rem;
  color: var(--ss-muted);
}

@keyframes ssSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Shared Dark Band */
.ss-sec {
  scroll-margin-top: 84px;
  border-bottom: 1px solid var(--ss-line);
  padding: clamp(72px, 8vw, 108px) clamp(20px, 4vw, 56px);
}

.ss-wrap { max-width: 1320px; margin: 0 auto; }

.ss-h2 {
  margin: 0 0 14px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
}

.ss-grid-3 {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ss-card {
  background: var(--ss-bg2);
  border: 1px solid var(--ss-line);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 02 · #scan Interactive Field Scanner */
.ss-scan-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: start;
  margin-top: 32px;
}

.ss-crop-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ss-crop-pill {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ss-line);
  background: var(--ss-bg);
  color: var(--ss-muted);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.ss-crop-pill.is-active {
  background: var(--ss-mint);
  border-color: var(--ss-mint);
  color: #0a1428;
  font-weight: 700;
}

.ss-field-canvas {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  border: 1px solid var(--ss-line);
  background: #070f1f;
  margin-top: 14px;
}

/* 04 · #herd Pasture Vision Card */
.ss-herd-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--ss-line);
  aspect-ratio: 16 / 10;
}

.ss-herd-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ss-cam-pill {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 20, 40, 0.86);
  font-size: 0.72rem;
  color: #ffffff;
}

/* 05 · #results Inverted Light Ice-Slate Contrast Band */
.ss-light-band {
  background: #eaf0f7;
  color: #0a1428;
  padding: clamp(72px, 8vw, 108px) clamp(20px, 4vw, 56px);
}

.ss-light-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 34px 0 48px;
}

.ss-light-stat {
  padding-top: 16px;
  border-top: 2px solid #0a1428;
}

.ss-light-stat strong {
  display: block;
  font-size: 2.3rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.ss-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--ss-line);
  background: var(--ss-bg);
  color: var(--ss-fg);
  font-family: inherit;
}

.ss-footer {
  padding: 38px clamp(20px, 4vw, 56px);
  background: #070f1e;
}

@media (max-width: 720px) {
  .ss-links { display: none; }
  .ss-hero-grid, .ss-hero-stats, .ss-grid-3, .ss-scan-split, .ss-light-stats { grid-template-columns: 1fr; }
}
