/* MSR AgriEnergy Solutions — one stylesheet for the whole site. Colours come from the logo (images/logo-full.svg).
   Colours are set once here; change them and the whole site follows. */
:root {
  --brand: #0e3b2c;        /* logo green */
  --brand-deep: #0a2c21;
  --gold: #8f6d3a;         /* logo gold, dark enough for white text on it */
  --gold-light: #c9a867;   /* logo gold, light: for use on green backgrounds */
  --gold-soft: #f2ead9;
  --ok: #2f7a55;          /* "done / live" ticks */
  --ink: #1b2621;         /* body text */
  --muted: #56635c;
  --paper: #fbf9f4;       /* warm off-white page */
  --sand: #f2eee4;        /* alternate sections */
  --line: #e3dccb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 44, 33, .06), 0 8px 24px rgba(10, 44, 33, .08);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; color: var(--brand-deep); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.alt { background: var(--sand); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.narrow { max-width: 60ch; }
.note { font-size: .88rem; color: var(--muted); margin-top: 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(251, 249, 244, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-deep); font-weight: 600; white-space: nowrap; }
.brand b { font-weight: 800; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--sand); }
.nav .nav-cta { background: var(--brand); color: #fff; }
.nav .nav-cta:hover { background: var(--brand-deep); }

/* ---------- buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: #76592d; }
.btn-ghost { border: 2px solid var(--brand); color: var(--brand); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px); background: radial-gradient(1200px 500px at 85% 0%, var(--gold-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .95rem; }
.hero-facts b { color: var(--brand-deep); font-weight: 800; }

/* ---------- problem ---------- */
.problem { background: var(--brand-deep); color: #dbe7e0; }
.problem h2 { color: #fff; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 12px 16px 12px 44px; position: relative; }
.check-list.bad li::before { content: "✕"; position: absolute; left: 16px; color: var(--gold-light); font-weight: 800; }

/* ---------- how it works ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.pillar, .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pillar p, .card p { color: var(--muted); margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.flow { list-style: none; padding: 0; margin: 36px 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: step; }
.flow li { background: var(--brand); color: #fff; font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 999px; }
.flow li:not(:last-child)::after { content: " →"; color: var(--gold); }
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.media-row img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: #fff; }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.product { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product img { aspect-ratio: 8 / 7; object-fit: cover; width: 100%; }
.product-body { padding: 22px 24px 26px; }
.product-body p:last-child { color: var(--muted); margin: 0; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); background: var(--gold-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: .7rem; }
.specs { display: flex; gap: 28px; margin: 0 0 1rem; }
.specs dt { font-size: .8rem; color: var(--muted); }
.specs dd { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--brand-deep); }
.sub { margin-top: 48px; }
.features { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; }
.features li { padding-left: 26px; position: relative; color: var(--muted); }
.features li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.features b { color: var(--ink); }

/* ---------- smart farm / models ---------- */
.roadmap-cards, .models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.status { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem !important; }
.status::before { content: "● "; }
.status.live { color: var(--ok) !important; }
.status.dev { color: var(--gold) !important; }
.status.plan { color: var(--muted) !important; }
.price { font-size: 1.3rem; font-weight: 800; color: var(--brand-deep) !important; margin-bottom: .5rem !important; }

/* ---------- journey ---------- */
.journey { align-items: start; }
.sketch img { border-radius: var(--radius); box-shadow: var(--shadow); max-height: 560px; object-fit: cover; width: 100%; }
.timeline { list-style: none; padding: 0; margin: 24px 0 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 20px 24px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--muted); }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline b { display: block; color: var(--brand-deep); }
.timeline span { color: var(--muted); font-size: .95rem; }

/* ---------- news ---------- */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 28px; }
.news-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.news-item time { font-size: .8rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.news-item h3 { margin-top: .4rem; }
.news-item p { color: var(--muted); margin: 0; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 28px; }
.member { text-align: center; }
.member img, .avatar { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; }
.avatar { background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; }
.member p { color: var(--muted); }

/* ---------- contact ---------- */
.contact { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #dbe7e0; }
.contact h2 { color: #fff; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 8px 24px; box-shadow: var(--shadow); }
.contact-line { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--brand-deep); font-weight: 700; text-decoration: none; margin: 0; word-break: break-word; }
.contact-line:last-child { border-bottom: 0; }
.contact-line span { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
a.contact-line:hover { color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-deep); color: #a9bdb2; font-size: .88rem; padding-block: 24px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }

/* ---------- phones and tablets ---------- */
@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .features, .roadmap-cards, .models { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-row { flex-direction: column; align-items: stretch; gap: 0; padding-block: 10px 0; }
  .nav { overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; margin-inline: -8px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; }
  html { scroll-padding-top: 120px; }
  .hero-grid, .two-col, .products, .media-row { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .pillars, .features, .roadmap-cards, .models { grid-template-columns: 1fr; }
  .sketch img { max-height: 380px; }
}

/* ---------- added with the logo and video ---------- */
.problem .eyebrow, .contact .eyebrow { color: var(--gold-light); }
.brand img { height: 40px; width: auto; }
.brand span { color: var(--brand); }
.video-section .wrap { max-width: 980px; text-align: center; }
.video-section h2 { margin-inline: auto; }
.video-frame { margin-top: 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; display: block; }
.site-footer { background: var(--sand); color: var(--muted); border-top: 1px solid var(--line); }
.site-footer a { color: var(--brand); }
.footer-row { align-items: center; }
.footer-logo { height: 64px; width: auto; }
.journey-video { max-width: 800px; margin-top: 48px; text-align: center; }
.journey-video .video-frame { margin-top: 16px; }

/* ---------- journey boards, recognition, team photos ---------- */
.boards { display: grid; gap: 12px; }
.board-main img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.board-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.board-thumbs img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.neo-intro { align-items: end; }
.badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.badges li { background: var(--brand); color: #dbe7e0; border-radius: var(--radius); padding: 20px 22px; }
.badges b { display: block; font-size: 2.2rem; font-weight: 800; color: var(--gold-light); line-height: 1.1; }
.badges span { font-size: .9rem; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.gallery .wide { grid-column: 1 / -1; }
.gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery .wide img { aspect-ratio: 16 / 7; }
.member img { box-shadow: var(--shadow); border: 4px solid #fff; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide img { aspect-ratio: 16 / 9; }
}
.team { grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); justify-content: center; }
div.contact-line a { color: var(--brand-deep); text-decoration: none; line-height: 1.8; }
div.contact-line a:hover { color: var(--gold); }
.footer-tagline { color: var(--brand); font-weight: 700; flex-basis: 100%; order: -1; }
