/* ═══════════════════════════════════════════
   SAVIS Landing Page
   Premium corporate, clean, image-rich
   ═══════════════════════════════════════════ */

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

:root {
  --green-900: #1B4332;
  --green-800: #234E3E;
  --green-700: #2D6A4F;
  --green-600: #357A5B;
  --green-500: #40916C;
  --green-400: #52A37E;
  --green-300: #74C69D;
  --green-200: #A7DDB8;
  --green-100: #D8F3DC;
  --green-50: #EDF7EE;
  --cream: #FEFAE0;
  --cream-100: #F9F5D7;
  --earth: #D4A373;
  --gold: #E9C46A;
  --yellow-badge: #FEF3C7;
  --yellow-text: #92400E;
  --purple-badge: #EDE9FE;
  --purple-text: #5B21B6;
  --orange-badge: #FEE2E2;
  --orange-text: #B91C1C;
  --text: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-lg { padding: 16px 36px; font-size: 16px; }

.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(45,106,79,0.3);
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45,106,79,0.35); }

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

/* ── Nav ──────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav-scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--green-700);
}

.nav-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--green-700); }

.nav-cta {
  background: var(--green-700) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-600) !important; }

/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,0.88) 0%, rgba(45,106,79,0.75) 50%, rgba(27,67,50,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-200);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: clamp(15px, 2.5vw, 17px);
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  backdrop-filter: blur(4px);
}

.trust-item { text-align: center; }
.trust-item strong { display: block; font-size: 14px; color: var(--white); }
.trust-item span { font-size: 11px; color: rgba(255,255,255,0.55); }
.trust-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.15); }

/* ── Section ──────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--green-50); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  font-size: 16px;
}

/* ── Steps ────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all 0.3s var(--ease);
}

.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.step-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.step-num {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  background: var(--green-700);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  padding: 20px 20px 6px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  padding: 0 20px 24px;
  line-height: 1.6;
}

/* ── Showcase (dark section with 2 images) ─ */
.section-dark {
  background: var(--green-900);
  padding: 96px 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.showcase-text h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.25;
}

.showcase-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 16px;
}

.showcase-text .btn { margin-top: 8px; }

.showcase-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.showcase-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.showcase-img-2 { margin-top: 32px; }

/* ── Detection Cards ─────────────────────── */
.detect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.detect-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all 0.3s var(--ease);
}

.detect-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.detect-img {
  width: 180px;
  min-height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.detect-body { padding: 20px; flex: 1; }

.detect-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-green { background: var(--green-100); color: var(--green-900); }
.badge-yellow { background: var(--yellow-badge); color: var(--yellow-text); }
.badge-purple { background: var(--purple-badge); color: var(--purple-text); }
.badge-orange { background: var(--orange-badge); color: var(--orange-text); }

.detect-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.detect-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Banner (full-width image) ────────────── */
.banner {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.banner-img { width: 100%; height: 100%; object-fit: cover; }

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,67,50,0.6) 0%, rgba(27,67,50,0.85) 100%);
}

.banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 2;
}

.banner-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  max-width: 560px;
}

.banner-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ── Features Grid ────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all 0.3s var(--ease);
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.feature-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  padding: 16px 16px 4px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  padding: 0 16px 20px;
  line-height: 1.5;
}

/* ── About ────────────────────────────────── */
.about-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 28px 20px;
  background: var(--green-50);
  border-bottom: 1px solid var(--border);
}

.about-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0; margin-top: 2px; }

.about-badge-sm {
  display: inline-block;
  background: var(--green-700);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.about-header h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.about-subtitle { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.about-meta { padding: 16px 28px; }

.about-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  gap: 16px;
}

.about-label { font-weight: 600; color: var(--text); flex-shrink: 0; }
.about-row span:last-child { color: var(--text-muted); text-align: right; }

.about-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}

.metric { text-align: center; padding: 20px 8px; }
.metric + .metric { border-left: 1px solid var(--border); }

.metric-val {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--green-700);
}

.metric-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── CTA Final ────────────────────────────── */
.section-cta {
  position: relative;
  padding: 80px 0;
  background: var(--green-50);
  overflow: hidden;
}

.section-cta .container { position: relative; }

.cta-bg-img {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(2px);
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.cta-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ── Footer ───────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--green-700);
  margin-bottom: 4px;
}

.footer-logo { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-note { font-size: 12px; color: var(--text-muted); opacity: 0.7; }

/* ── Scroll Animations ────────────────────── */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-anim].anim-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; gap: 32px; }
  .showcase-images { grid-template-columns: 1fr 1fr; }
  .showcase-img-2 { margin-top: 0; }
}

@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .detect-grid { grid-template-columns: 1fr; }
  .detect-card { flex-direction: column; }
  .detect-img { width: 100%; height: 180px; }
  .about-metrics { grid-template-columns: repeat(2, 1fr); }
  .about-row { flex-direction: column; gap: 2px; }
  .about-row span:last-child { text-align: left; }
  .hero-trust { flex-direction: column; gap: 8px; }
  .trust-divider { width: 40px; height: 1px; }
  .banner { height: 360px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .showcase-images { grid-template-columns: 1fr; }
  .about-header { flex-direction: column; }
}
