:root {
  --color-bg: #0c1524;
  --color-bg-alt: #0a1120;
  --color-dark: #060b16;
  --color-dark-2: #0a1120;
  --color-text: #eaf0fb;
  --color-muted: #8ea0bd;
  --color-border: #223250;
  --color-accent: #5b8fd6;
  --color-accent-dark: #3f6bb0;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--color-accent); color: #fff; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 22, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  font-size: 18px;
  color: var(--color-muted);
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--color-text); }

.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--color-accent);
  border-radius: 2px;
  color: var(--color-text) !important;
}

.nav-cta:hover {
  background: var(--color-accent);
  color: #fff !important;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover { background: var(--color-accent-dark); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-block { width: 100%; text-align: center; }

/* Hero */
.hero {
  background: var(--color-dark);
  color: #fff;
  padding: 140px 0 100px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-logo {
  width: 400px;
  max-width: 46%;
  height: auto;
  flex-shrink: 0;
}

.hero-content { max-width: 640px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stats */
.stats {
  position: relative;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.stats-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  z-index: 0;
}

.stats-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 22, 0.78);
  z-index: 1;
}

.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 96px 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.stat-number {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-accent);
}

.stat-label {
  font-size: 13px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Sections */
.section { padding: 64px 0; }

.section-alt { background: var(--color-bg-alt); }

.section-title {
  font-size: clamp(26px, 3.5vw, 34px);
  margin-bottom: 12px;
  text-align: center;
}

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

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  padding: 32px 28px;
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.section-alt .card { background: var(--color-dark); }

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(91, 143, 214, 0.5));
}

.card-icon svg { width: 100%; height: 100%; }

.card h3 { font-size: 18px; margin-bottom: 10px; }

.card p { font-size: 14.5px; color: var(--color-muted); margin: 0; }

.card-industry { position: relative; padding: 0 0 28px; overflow: hidden; }

.card-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--color-border);
}

.card-industry h3,
.card-industry p { padding-left: 28px; padding-right: 28px; }

.card-industry h3 { margin-top: 24px; }

.card h4 { font-size: 16px; margin: 0 0 8px; }

/* Industry groups (within Industries We Serve) */
.industry-group + .industry-group { margin-top: 64px; }

.industry-group-title {
  font-size: 21px;
  margin: 0 0 6px;
  text-align: center;
}

.industry-group-sub {
  color: var(--color-muted);
  font-size: 14.5px;
  margin: 0 auto 20px;
  max-width: 560px;
  text-align: center;
}

.industry-group-intro {
  color: var(--color-muted);
  font-size: 15px;
  max-width: 700px;
  margin: 0 auto 28px;
  text-align: center;
}

.industry-group-closing {
  font-size: 15px;
  color: var(--color-text);
  font-weight: 600;
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
}

.industry-video {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 32px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: #000;
}

.agromining-photo {
  display: block;
  width: 100%;
  max-width: 720px;
  height: 320px;
  object-fit: cover;
  margin: 0 auto 40px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.cards-industries {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
}

.cards-agromining {
  grid-template-columns: repeat(3, 1fr);
}

/* Process */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process li {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.process-number {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.process h3 { font-size: 16px; margin-bottom: 6px; }

.process p { font-size: 14px; color: var(--color-muted); margin: 0; }

/* Quote / CTA */
.quote-section {
  background: var(--color-dark-2);
  color: #fff;
  padding: 64px 0;
}

.quote-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.quote-text h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  margin-bottom: 16px;
}

.quote-text p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  max-width: 420px;
}

.quote-form {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  padding: 36px;
  border-radius: 4px;
  color: var(--color-text);
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.optional { font-weight: 400; color: var(--color-muted); }

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--color-muted); }

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-dark-2);
}

.form-status {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 20px;
}

.form-status.success { color: #5fc98a; }
.form-status.error { color: #e2685a; }

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0;
}

.footer-inner { text-align: center; }

.logo-footer { display: block; color: #fff; margin-bottom: 12px; }

.footer-copy {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

.footer-link:hover { color: #fff; }

/* Legal page */
.legal-inner { max-width: 760px; }

.legal-title {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 18px;
  margin: 40px 0 12px;
}

.legal h2:first-of-type { margin-top: 0; }

.legal p {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 20px;
}

.legal p:last-child { margin-bottom: 0; }

.legal-link {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 860px) {
  .nav { gap: 18px; }
  .nav a:not(.nav-cta) { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .quote-inner { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 72px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-logo { width: 160px; max-width: 50%; }
}

@media (max-width: 480px) {
  .process { grid-template-columns: 1fr; }
}
