/* ============================================================
   Home v2 — Systems-first design language
   Inspired by base44 reference. Uses existing palette:
   #3F493D (charcoal-green), #99ab9c (sage), #DEE4DE (light)
   Self-contained — does not override existing site styles.
   ============================================================ */

.hv2 {
    --hv2-dark: #20503a;
    --hv2-dark-2: #163a29;
    --hv2-sage: #99ab9c;
    --hv2-sage-soft: #c8d2c9;
    --hv2-cream: #f6f7f4;
    --hv2-white: #ffffff;
    --hv2-text: #1f231e;
    --hv2-muted: #6b7268;
    --hv2-border: #e3e6e0;

    color: var(--hv2-text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.55;
}

.hv2 section {
    padding: 5rem 0;
}

.hv2 .container {
    max-width: 1200px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin: 0 auto;
    color: inherit;
}

.hv2 .eyebrow {
    display: inline-block;
    font-size: .75rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--hv2-sage);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hv2 h1, .hv2 h2, .hv2 h3, .hv2 h4 {
    font-family: 'Palatino Linotype', 'Georgia', serif;
    font-weight: 600;
    color: inherit;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.hv2 p { margin: 0 0 1rem; color: inherit; }
.hv2 .lead { font-size: 1.15rem; color: var(--hv2-muted); max-width: 720px; }

.hv2 .btn-hv2 {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}
.hv2 .btn-hv2-primary { background: #20503a; color: #fff; }
.hv2 .btn-hv2-primary:hover { background: #163a29; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(32,80,58,.25); }
.hv2 .btn-hv2-ghost { background: transparent; color: #1f231e; border-color: #c8cdc4; }
.hv2 .btn-hv2-ghost:hover { background: rgba(32,80,58,.06); border-color: #20503a; color: #20503a; }
.hv2 .btn-hv2-light { background: #20503a; color: #fff; }
.hv2 .btn-hv2-light:hover { background: #163a29; transform: translateY(-1px); }

/* ---------- HERO ---------- */
.hv2-hero {
    position: relative;
    background: #f6f7f4;
    color: #1f231e;
    padding: 7rem 0 6rem;
    overflow: hidden;
}
.hv2-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(32,80,58,.05), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(32,80,58,.04), transparent 45%);
    pointer-events: none;
}
.hv2-hero .container { position: relative; }
.hv2-hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: #1f231e;
}
.hv2-hero h1 .accent { color: #20503a; }
.hv2-hero .lead { color: #4a5048; max-width: 640px; font-size: 1.2rem; }
.hv2-hero .cta-row { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hv2-hero .feature-pills {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
}
.hv2-hero .feature-pills li {
    list-style: none;
    background: #ffffff;
    border: 1px solid #e3e6e0;
    padding: .65rem 1rem;
    border-radius: 999px;
    font-size: .92rem;
    color: #1f231e;
    display: flex; align-items: center; gap: .5rem;
}
.hv2-hero .feature-pills i { color: #20503a; }

.hv2-hero .eyebrow { color: #20503a; }
.hv2-hero .eyebrow::before {
    content: "\2022";
    margin-right: .4rem;
    color: #20503a;
}

/* ---------- STATS ---------- */
.hv2-stats {
    background: var(--hv2-cream);
    padding: 3rem 0;
    border-top: 1px solid var(--hv2-border);
    border-bottom: 1px solid var(--hv2-border);
}
.hv2-stats .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}
.hv2-stats .stat-num {
    font-family: 'Palatino Linotype', serif;
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--hv2-dark);
    line-height: 1;
}
.hv2-stats .stat-label {
    margin-top: .4rem;
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hv2-muted);
}

/* ---------- SECTION HEADER ---------- */
.hv2 .section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}
.hv2 .section-head h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}
.hv2 .section-head p { color: var(--hv2-muted); font-size: 1.05rem; }

/* ---------- COMPARISON (Marketing vs Systems) ---------- */
.hv2-compare { background: #fff; }
.hv2-compare .compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.hv2-compare .compare-card {
    border: 1px solid var(--hv2-border);
    border-radius: 18px;
    padding: 2rem;
    background: var(--hv2-cream);
}
.hv2-compare .compare-card.is-good {
    background: var(--hv2-dark);
    color: #fff;
    border-color: var(--hv2-dark);
}
.hv2-compare .compare-card h3 {
    font-size: 1.4rem;
    margin-bottom: .25rem;
}
.hv2-compare .compare-card .compare-tag {
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hv2-muted);
    margin-bottom: 1.25rem;
}
.hv2-compare .compare-card.is-good .compare-tag { color: var(--hv2-sage); }
.hv2-compare .compare-card ul { list-style: none; padding: 0; margin: 0; }
.hv2-compare .compare-card li {
    padding: .65rem 0;
    border-top: 1px solid var(--hv2-border);
    display: flex; align-items: center; gap: .75rem;
    font-size: .98rem;
}
.hv2-compare .compare-card.is-good li { border-top-color: rgba(255,255,255,.1); }
.hv2-compare .compare-card li:first-child { border-top: 0; }
.hv2-compare .compare-card .icn {
    flex: 0 0 26px; height: 26px; width: 26px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem;
}
.hv2-compare .compare-card.is-bad .icn { background: #f1d9d5; color: #a64a3c; }
.hv2-compare .compare-card.is-good .icn { background: var(--hv2-sage); color: var(--hv2-dark); }

@media (max-width: 768px) {
    .hv2-compare .compare-grid { grid-template-columns: 1fr; }
}

/* ---------- OUTCOMES (5 cards) ---------- */
.hv2-outcomes { background: var(--hv2-cream); }
.hv2-outcomes .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.hv2-outcomes .card-hv2 {
    background: #fff;
    border: 1px solid var(--hv2-border);
    border-radius: 18px;
    padding: 1.75rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hv2-outcomes .card-hv2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(43,52,42,.08);
    border-color: var(--hv2-sage);
}
.hv2-outcomes .card-hv2 .icn-box {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--hv2-dark);
    color: var(--hv2-sage);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.hv2-outcomes .card-hv2 h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.hv2-outcomes .card-hv2 p { color: var(--hv2-muted); font-size: .95rem; margin: 0; }

/* ---------- INDUSTRIES ---------- */
.hv2-industries { background: #fff; }
.hv2-industries .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.hv2-industries .ind-card {
    background: var(--hv2-cream);
    border: 1px solid var(--hv2-border);
    border-radius: 18px;
    padding: 1.75rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hv2-industries .ind-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(43,52,42,.08); }
.hv2-industries .ind-card h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.hv2-industries .ind-card .sub { color: var(--hv2-muted); margin-bottom: 1.25rem; font-size: .92rem; }
.hv2-industries .ind-card ul { list-style: none; padding: 0; margin: 0; }
.hv2-industries .ind-card li {
    padding: .45rem 0;
    font-size: .94rem;
    display: flex; align-items: center; gap: .55rem;
}
.hv2-industries .ind-card li i { color: var(--hv2-sage); font-size: .9rem; }
.hv2-industries .ind-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: #fff;
    color: var(--hv2-dark);
    border: 1px solid var(--hv2-border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ---------- AGENTS ---------- */
.hv2-agents { background: var(--hv2-cream); }
.hv2-agents .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.hv2-agents .agent-card {
    background: #fff;
    border: 1px solid var(--hv2-border);
    border-radius: 18px;
    padding: 1.5rem;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hv2-agents .agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(43,52,42,.08);
    border-color: var(--hv2-sage);
}
.hv2-agents .agent-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.hv2-agents .agent-icn {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--hv2-dark);
    color: var(--hv2-sage);
    display: flex; align-items: center; justify-content: center;
}
.hv2-agents .agent-card h3 { font-size: 1.1rem; margin: 0; }
.hv2-agents .agent-card p { color: var(--hv2-muted); font-size: .92rem; }
.hv2-agents .live-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: #e8f0e6;
    color: #2e6b2c;
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .55rem;
    border-radius: 999px;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: .35rem;
}
.hv2-agents .live-badge::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: #2e6b2c;
    box-shadow: 0 0 0 0 rgba(46,107,44,.6);
    animation: hv2pulse 1.6s ease-out infinite;
}
@keyframes hv2pulse {
    0%   { box-shadow: 0 0 0 0 rgba(46,107,44,.6); }
    70%  { box-shadow: 0 0 0 8px rgba(46,107,44,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,107,44,0); }
}

/* ---------- FINAL CTA ---------- */
.hv2-final {
    background: linear-gradient(135deg, #20503a 0%, #122d20 100%);
    color: #fff;
    text-align: center;
}
.hv2-final h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.hv2-final p { color: #d6dad4; max-width: 640px; margin: 0 auto 2rem; }
.hv2-final .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- RESPONSIVE TUNING ---------- */
@media (max-width: 576px) {
    .hv2 section { padding: 3.5rem 0; }
    .hv2-hero { padding: 5rem 0 4rem; }
    .hv2 .section-head { margin-bottom: 2.5rem; }
    .hv2-stats .stat-num { font-size: 2.1rem; }
}
