/* ============================================================
   HERDOS Marketing Site — Homepage Sections (mobile-first)
   ============================================================ */

/* ---- 1. HERO ---- */
.hero { background: var(--grad-hero); color: var(--cream); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 18%, rgba(57,181,74,0.22), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 46px);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; gap: 2.5rem; align-items: center;
  padding-top: clamp(3rem, 2rem + 5vw, 5rem); padding-bottom: clamp(3.5rem, 2.5rem + 5vw, 6rem); }
@media (min-width: 980px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 5.5rem;
    padding-top: clamp(5rem, 4rem + 6vw, 8rem);
    padding-bottom: clamp(5.5rem, 4.5rem + 6vw, 9rem);
  }
}
.hero h1 { color: #fff; margin: 1.25rem 0; }
.hero .accent { color: var(--green-bright); }
.hero .accent-gold { color: var(--gold); }
.hero-sub { color: rgba(245,245,245,0.84); font-size: clamp(1.02rem, 0.96rem + 0.5vw, 1.28rem); line-height: 1.6; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 2.25rem; }
.hero-trust div { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(245,245,245,0.8); }
.hero-trust svg { width: 16px; height: 16px; color: var(--green-bright); flex: none; }

.hero-visual { position: relative; }
.hero-photo { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-lg); object-fit: cover; aspect-ratio: 4 / 3.4; background: rgba(255,255,255,0.04); }
.hero-appcard {
  position: absolute; left: -0.5rem; bottom: -1.25rem; width: min(62%, 240px);
  background: rgba(245,245,245,0.92); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6); border-radius: var(--r-md); box-shadow: var(--sh-lg);
  padding: 0.85rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.hero-appcard .ac-row { display: flex; align-items: center; gap: 0.5rem; }
.hero-appcard .ac-pill { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); background: var(--sage-100); padding: 0.2rem 0.5rem; border-radius: var(--r-pill); }
.hero-appcard .ac-map { width: 100%; height: 96px; border-radius: var(--r-sm); object-fit: cover; }
.hero-appcard .ac-stat { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--forest); }
.hero-appcard .ac-stat span { font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; color: var(--muted); display: block; }
@media (max-width: 540px) { .hero-appcard { position: static; width: 100%; margin-top: 1rem; } }

/* ---- Hero ticker ---- */
.ticker { background: var(--paper); border-block: 1px solid var(--border-soft); }
.ticker .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.4rem; }
.ticker-item { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--forest); font-size: 0.9rem; }
.ticker-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--gold); }
.ticker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite var(--ease); }

/* ---- 2. VALUE PROP (3-up) ---- */
.vp-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 720px) { .vp-grid { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 1.5rem + 2vw, 3.25rem); } }
.vp-card { background: var(--paper); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--sh-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); display: flex; flex-direction: column; gap: 0.9rem; }
.vp-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.vp-ico { width: 3.25rem; height: 3.25rem; border-radius: var(--r-md); background: var(--sage-100); color: var(--green-press); display: inline-flex; align-items: center; justify-content: center; }
.vp-ico svg { width: 28px; height: 28px; }
.vp-card h3 { font-size: 1.3rem; }
.vp-card p { color: var(--muted); }
.vp-card .tlink { margin-top: auto; }

/* ---- 3. KEY FEATURES (alternating rows) ---- */
.kf-row { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.kf-row + .kf-row { margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
@media (min-width: 900px) {
  .kf-row { grid-template-columns: 1fr 1fr; gap: 5.5rem; }
  .kf-row.reverse .kf-media { order: 2; }
  .kf-row + .kf-row { margin-top: clamp(5rem, 3.5rem + 6vw, 8.5rem); }
}
.kf-media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-md); object-fit: cover; aspect-ratio: 4 / 3; background: var(--sage-50); }
.kf-text h2 { margin: 0.9rem 0 1rem; }
.kf-list { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin-top: 1.5rem; }
@media (min-width: 480px) { .kf-list { grid-template-columns: 1fr 1fr; } }
.kf-list li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.95rem; color: var(--forest); }
.kf-list svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }

/* ---- 4. PRODUCT COMPARE ---- */
.cmp-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 760px) { .cmp-grid { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1.5rem + 2vw, 3.25rem); } }
.cmp-card { background: var(--paper); border: 1px solid var(--border-soft); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.cmp-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.cmp-photo { position: relative; height: 220px; }
.cmp-photo img { width: 100%; height: 100%; object-fit: cover; }
.cmp-photo .pill { position: absolute; top: 1rem; left: 1rem; }
.cmp-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.cmp-body h3 { font-size: 1.5rem; }
.cmp-body ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.cmp-body li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.cmp-body li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }

/* ---- 5. MARKET NUMBERS BAND ---- */
.mkt-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .mkt-grid { grid-template-columns: 1.5fr 1fr; gap: 3.5rem; } }
.mkt-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
.mkt-stat { border-top: 2px solid rgba(255,255,255,0.16); padding-top: 1rem; }
.mkt-stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); color: var(--gold); line-height: 1; letter-spacing: -0.02em; }
.mkt-stat .lab { display: block; margin-top: 0.5rem; font-size: 0.82rem; color: rgba(245,245,245,0.72); }
.mkt-copy .eyebrow { margin-bottom: 1rem; }
.mkt-copy p { color: rgba(245,245,245,0.78); margin-top: 1rem; }

/* ---- 6. HOW IT WORKS (3 step) ---- */
.proc { display: grid; grid-template-columns: 1fr; gap: 1.5rem; position: relative; }
@media (min-width: 820px) { .proc { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 1.5rem + 2vw, 3.25rem); } }
.proc-step { background: var(--paper); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.85rem; box-shadow: var(--sh-sm); }
.proc-num { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: var(--r-pill); background: var(--green); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.proc-step h3 { font-size: 1.2rem; }
.proc-step p { color: var(--muted); font-size: 0.95rem; }
.proc-video { margin-top: 2.5rem; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); position: relative; aspect-ratio: 16 / 9; background: var(--forest); }
.proc-video video { width: 100%; height: 100%; object-fit: cover; }
.proc-video .vcap { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; max-width: 420px; background: rgba(13,31,18,0.82); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-sm); padding: 0.9rem 1.1rem; color: #fff; }
.proc-video .vcap h5 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.proc-video .vcap .live { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); }
.proc-video .vcap p { color: rgba(255,255,255,0.72); font-size: 0.8rem; margin-top: 0.25rem; }

/* ---- 7. TESTIMONIALS ---- */
.tcar { overflow: hidden; }
.tcar-track { display: flex; gap: 1.25rem; transition: transform 0.55s var(--ease); }
@media (min-width: 1000px) {
  .tcar-track { gap: 2rem; }
}
.tcard { flex: 0 0 100%; background: var(--paper); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--sh-sm); }
@media (min-width: 680px) { .tcard { flex-basis: calc(50% - 0.625rem); } }
@media (min-width: 1000px) { .tcard { flex-basis: calc(33.333% - 1.333rem); } }
.tcard-photo { width: 100%; height: 220px; border-radius: var(--r-md); object-fit: cover; }
.tcard-stars { display: flex; gap: 3px; color: var(--gold); }
.tcard-stars svg { width: 16px; height: 16px; }
.tcard-quote { font-size: 1.02rem; line-height: 1.55; color: var(--forest); font-style: italic; }
.tcard-meta h6 { font-family: var(--font-display); font-size: 1rem; color: var(--forest); }
.tcard-meta p { font-size: 0.85rem; color: var(--faint); }
.tcar-ctrls { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.5rem; }
.tcar-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; color: var(--forest); transition: background var(--dur), color var(--dur); }
.tcar-btn:hover { background: var(--sage-50); color: var(--green); }
.tcar-btn svg { width: 20px; height: 20px; }

/* ---- 8. TECHNOLOGY PREVIEW STRIP ---- */
.techstrip { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (min-width: 720px) { .techstrip { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }
.tech-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.7rem; padding: 1.5rem 1rem; border: 1px solid var(--border-soft); border-radius: var(--r-md); background: var(--paper); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.tech-item:hover { transform: translateY(-4px); border-color: var(--sage-200); }
.tech-item .ti-ico { width: 2.8rem; height: 2.8rem; border-radius: var(--r-md); background: var(--sage-100); color: var(--green-press); display: inline-flex; align-items: center; justify-content: center; }
.tech-item .ti-ico svg { width: 24px; height: 24px; }
.tech-item span { font-size: 0.85rem; font-weight: 600; color: var(--forest); }

/* ---- 9. BLOG TEASER ---- */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 1.5rem + 2vw, 3.25rem); } }
.bcard { background: var(--paper); border: 1px solid var(--border-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.bcard:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.bcard-img { height: 180px; overflow: hidden; }
.bcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.bcard:hover .bcard-img img { transform: scale(1.05); }
.bcard-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; }
.bcard-cat { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.bcard-body h4 { font-size: 1.1rem; line-height: 1.3; }
.bcard-body p { font-size: 0.9rem; color: var(--muted); }
.bcard-meta { font-size: 0.78rem; color: var(--faint); margin-top: 0.2rem; }

/* ---- 10. FINAL CTA ---- */
.finalcta { background: var(--grad-hero); color: #fff; text-align: center; }
.finalcta .container { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; max-width: 680px; }
.finalcta h2 { color: #fff; }
.finalcta p { color: rgba(245,245,245,0.82); font-size: 1.08rem; }
.finalcta .hero-cta { justify-content: center; }

/* ---- Mobile sticky CTA bar ---- */
.mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom)); background: rgba(245,245,245,0.92); backdrop-filter: blur(12px); border-top: 1px solid var(--border); transform: translateY(120%); transition: transform var(--dur) var(--ease); }
.mcta.show { transform: none; }
@media (min-width: 1024px) { .mcta { display: none; } }
.mcta .btn { width: 100%; }
