/* Home v2 — section styles (page-home-v2.php). Depends on hgv2.css. */

/* ---------- Hero ---------- */
.hgv2-hero { padding-top: clamp(32px, 5vw, 72px); position: relative; }
.hgv2-hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 720px; background: radial-gradient(60% 50% at 75% 40%, rgba(255, 150, 38, .10), transparent 70%); pointer-events: none; }
.hgv2-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hgv2-hero__copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hgv2-hero__title { display: flex; flex-direction: column; gap: 8px; font-size: clamp(38px, 5vw, 68px); line-height: 1.04; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
.hgv2-hero__accent { font-family: var(--hg-mono); font-weight: 500; font-size: .78em; letter-spacing: -.02em; color: var(--hg-accent); }
.hgv2-hero__accent::after { content: "▍"; margin-left: .08em; animation: hgv2-blink 1.1s steps(1) infinite; }
@keyframes hgv2-blink { 50% { opacity: 0; } }
.hgv2-hero__lead { font-size: 18px; max-width: 600px; }
.hgv2-hero__visual { min-width: 0; }
.hgv2-hero__visual .hg-net { width: 100%; }

.hgv2-logos { margin-top: clamp(48px, 6vw, 80px); padding: 28px 0 8px; border-top: 1px solid var(--hg-line); display: flex; flex-direction: column; gap: 20px; }
.hgv2-logos__title { text-align: center; color: var(--hg-muted-2); }
.hgv2-logos__title::before { content: none; }
.hgv2-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hgv2-marquee__track { display: flex; width: max-content; animation: hgv2-marquee 40s linear infinite; }
.hgv2-marquee:hover .hgv2-marquee__track { animation-play-state: paused; }
.hgv2-marquee__item { flex: none; display: grid; place-items: center; height: 64px; padding: 0 clamp(20px, 3vw, 40px); }
.hgv2-marquee__item img { max-height: 44px; width: auto; max-width: 150px; object-fit: contain; opacity: .72; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.hgv2-marquee__item img:hover { opacity: 1; filter: none; }
@keyframes hgv2-marquee { to { transform: translateX(-50%); } }

/* ---------- Problems ---------- */
.hgv2-problem { display: flex; flex-direction: column; gap: 12px; }
.hgv2-problem__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.hgv2-problem__num { font-family: var(--hg-mono); font-size: 13px; color: var(--hg-accent); }
.hgv2-problem__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--hg-surface-3); }
.hgv2-problem__icon img { width: 20px; height: 20px; }
.hgv2-problem:hover { border-color: var(--hg-accent-line); }

/* ---------- Solutions ---------- */
.hgv2-sol__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.hgv2-sol__tab { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 14px; align-items: center; padding: 16px 18px; border-radius: var(--hg-radius-sm); background: var(--hg-surface); border: 1px solid var(--hg-line); transition: border-color .2s, background-color .2s; }
.hgv2-sol__tab:hover { border-color: var(--hg-line-2); }
.hgv2-sol__tab.is-active { border-color: var(--hg-accent); background: linear-gradient(180deg, rgba(255, 150, 38, .10), rgba(255, 150, 38, .02)); }
.hgv2-sol__tab-icon { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--hg-surface-3); }
.hgv2-sol__tab-icon img { width: 44px; height: 44px; border-radius: 12px; }
.hgv2-sol__tab-num { font-family: var(--hg-mono); font-size: 12px; color: var(--hg-muted-2); }
.hgv2-sol__tab.is-active .hgv2-sol__tab-num { color: var(--hg-accent); }
.hgv2-sol__tab-title { font-size: 18px; font-weight: 500; }
.hgv2-sol__panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.hgv2-sol__copy { display: flex; flex-direction: column; gap: 24px; }
.hgv2-sol__copy > .hgv2-lead { font-size: 17px; }
.hgv2-sol__block { display: flex; flex-direction: column; gap: 12px; }
.hgv2-sol__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding-top: 20px; border-top: 1px solid var(--hg-line); }
.hgv2-sol__media { border-radius: var(--hg-radius-sm); overflow: hidden; background: var(--hg-surface-2); border: 1px solid var(--hg-line); position: sticky; top: 112px; }
.hgv2-sol__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.hgv2-trust { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--hg-accent-soft); border: 1px solid var(--hg-accent-line); font-size: 14px; color: var(--hg-muted); }
.hgv2-trust strong { color: var(--hg-text); font-weight: 500; }
.hgv2-trust__dot { width: 8px; height: 8px; border-radius: 99px; background: var(--hg-accent); box-shadow: 0 0 0 4px rgba(255, 150, 38, .2); }

/* ---------- Integrations ---------- */
.hgv2-int { display: flex; flex-direction: column; gap: 20px; }
.hgv2-int__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.hgv2-int__tab { display: inline-flex; align-items: center; gap: 10px; padding: 9px 10px 9px 16px; border-radius: 999px; border: 1px solid var(--hg-line); background: var(--hg-surface-2); font-size: 14px; line-height: 1.3; color: var(--hg-muted); transition: background-color .2s, color .2s, border-color .2s; }
.hgv2-int__tab:hover { color: var(--hg-text); border-color: var(--hg-line-2); }
.hgv2-int__tab.is-active { color: #0B0D0F; background: var(--hg-accent); border-color: var(--hg-accent); }
.hgv2-int__count { flex: none; min-width: 24px; padding: 2px 7px; border-radius: 99px; font-family: var(--hg-mono); font-size: 12px; text-align: center; background: rgba(247, 247, 247, .07); color: var(--hg-muted-2); }
.hgv2-int__tab.is-active .hgv2-int__count { background: rgba(11, 13, 15, .16); color: #0B0D0F; }
.hgv2-int__board { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; min-height: 224px; align-content: start; }
.hgv2-int__logo { display: grid; place-items: center; min-height: 104px; padding: 20px; border-radius: var(--hg-radius-sm); background: var(--hg-surface-2); border: 1px solid var(--hg-line); transition: border-color .2s, transform .2s; }
.hgv2-int__logo:hover { border-color: var(--hg-accent-line); transform: translateY(-2px); }
.hgv2-int__logo img { max-height: 40px; max-width: 100%; width: auto; object-fit: contain; }
.hgv2-int__logo span { font-weight: 500; }
.hgv2-int__logo.is-featured { border-color: var(--hg-accent-line); background: linear-gradient(180deg, rgba(255, 150, 38, .08), var(--hg-surface-2)); }

/* ---------- Why ---------- */
.hgv2-feature { display: flex; gap: 20px; align-items: flex-start; }
.hgv2-feature > div { display: flex; flex-direction: column; gap: 8px; }
.hgv2-feature--stack { flex-direction: column; gap: 14px; }
.hgv2-feature:hover { border-color: var(--hg-line-2); }

/* ---------- How it works ---------- */
.hgv2-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; position: relative; }
.hgv2-step { display: flex; flex-direction: column; gap: 16px; position: relative; }
.hgv2-step__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hgv2-step__dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 99px; font-family: var(--hg-mono); font-size: 14px; color: #0B0D0F; background: var(--hg-accent); }
.hgv2-step:not(:last-child)::after { content: ""; position: absolute; top: calc(clamp(22px, 2.4vw, 32px) + 18px); right: -17px; width: 18px; height: 1px; background: var(--hg-accent-line); }

/* ---------- Tech stack ---------- */
.hgv2-split--tech { align-items: center; }
.hgv2-h2--tech { font-size: clamp(28px, 3.2vw, 44px); }
.hgv2-h2--tech span { display: block; margin-top: 16px; font-size: 18px; line-height: 1.55; letter-spacing: 0; font-weight: 400; color: var(--hg-muted); }
.hgv2-tech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hgv2-tech__item { display: grid; place-items: center; aspect-ratio: 1.35; padding: 16px; border-radius: var(--hg-radius-sm); background: var(--hg-surface); border: 1px solid var(--hg-line); transition: border-color .2s; }
.hgv2-tech__item:hover { border-color: var(--hg-accent-line); }
.hgv2-tech__item img { max-height: 56px; width: auto; object-fit: contain; }

/* ---------- Case studies ---------- */
.hgv2-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hgv2-case__copy { display: flex; flex-direction: column; gap: 22px; }
.hgv2-case__sub { font-family: var(--hg-mono); font-size: 13px; color: var(--hg-accent); margin-top: -10px; }
.hgv2-case__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 22px; border-top: 1px solid var(--hg-line); }
.hgv2-case__media { border-radius: var(--hg-radius-sm); overflow: hidden; background: var(--hg-surface-2); }
.hgv2-case__media img { width: 100%; height: auto; }

/* ---------- Quote + CTA ---------- */
.hgv2-quote-grid { display: grid !important; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px !important; }
.hgv2-quote { display: flex; flex-direction: column; gap: 28px; justify-content: space-between; }
.hgv2-quote__mark { color: var(--hg-accent); }
.hgv2-quote__text { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45; letter-spacing: -.01em; }
.hgv2-quote__author { display: flex; align-items: center; gap: 14px; }
.hgv2-quote__author > span { display: flex; flex-direction: column; font-size: 14px; color: var(--hg-muted); }
.hgv2-quote__author strong { color: var(--hg-text); font-size: 16px; font-weight: 500; }
.hgv2-quote__avatar { width: 52px; height: 52px; border-radius: 99px; object-fit: cover; }
.hgv2-cta-card { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 16px; padding: clamp(28px, 3vw, 40px); border-radius: var(--hg-radius); background: var(--hg-accent); color: #0B0D0F; position: relative; overflow: hidden; }
.hgv2-cta-card::before { content: "$ ./connect"; position: absolute; top: 24px; left: clamp(28px, 3vw, 40px); font-family: var(--hg-mono); font-size: 13px; opacity: .55; }
.hgv2-cta-card .hgv2-h2 { color: #0B0D0F; padding-top: 48px; }
.hgv2-cta-card__text { font-size: 17px; line-height: 1.5; color: rgba(11, 13, 15, .72); margin-bottom: 8px; }

/* ---------- Industries ---------- */
.hgv2-industry { display: flex; flex-direction: column; gap: 10px; }
.hgv2-industry .hgv2-icon { margin-bottom: 12px; }
.hgv2-industry:hover { border-color: var(--hg-accent-line); }

/* ---------- Pricing ---------- */
.hgv2-pricing { align-items: start; }
.hgv2-plan { display: flex; flex-direction: column; gap: 22px; }
/* Align head / price / best-for / button / included across the three cards:
   each card spans 5 rows of the pricing grid and shares them via subgrid. */
@supports (grid-template-rows: subgrid) {
    .hgv2-pricing { align-items: stretch; }
    .hgv2-plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 22px; align-content: start; }
    .hgv2-plan > .hgv2-btn { align-self: end; }
    .hgv2-plan__inc { align-self: start; }
}
.hgv2-plan:nth-child(2) { border-color: var(--hg-accent-line); background: linear-gradient(180deg, rgba(255, 150, 38, .08), var(--hg-surface) 40%); }
.hgv2-plan__head { display: flex; flex-direction: column; gap: 12px; }
.hgv2-plan__head .hgv2-kicker { font-size: 12px; }
.hgv2-plan__price { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--hg-line); border-bottom: 1px solid var(--hg-line); }
.hgv2-plan__amount { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; font-weight: 500; letter-spacing: -.02em; color: var(--hg-text); }
.hgv2-plan__note { font-size: 14px; color: var(--hg-muted); }
.hgv2-plan__best { font-size: 14px; line-height: 1.55; color: var(--hg-muted); }
.hgv2-plan__best strong { color: var(--hg-text); font-weight: 500; }
.hgv2-plan > .hgv2-btn { width: 100%; }
.hgv2-plan__inc { display: flex; flex-direction: column; }
.hgv2-plan__inc > .hgv2-label { margin-bottom: 6px; }

/* ---------- Timeline ---------- */
.hgv2-timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; position: relative; }
.hgv2-timeline::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 1px; background: linear-gradient(90deg, var(--hg-accent), var(--hg-accent-line) 70%, transparent); }
.hgv2-timeline__item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hgv2-timeline__marker { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--hg-bg); box-shadow: 0 0 0 1px var(--hg-accent-line), 0 0 0 6px var(--hg-surface); margin-bottom: 8px; }
.hgv2-band__inner--raised .hgv2-timeline__marker { box-shadow: 0 0 0 1px var(--hg-accent-line), 0 0 0 6px var(--hg-surface); }
.hgv2-timeline__marker img, .hgv2-timeline__marker svg { width: 48px; height: 48px; border-radius: 50%; display: block; }
.hgv2-timeline .hgv2-h3 { font-size: 17px; }
.hgv2-timeline .hgv2-text { font-size: 14px; }

/* ---------- Always included ---------- */
.hgv2-guarantees { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border: 1px solid var(--hg-line); border-radius: var(--hg-radius); overflow: hidden; }
.hgv2-guarantees li { display: flex; gap: 14px; align-items: center; padding: 20px 22px; font-size: 14px; line-height: 1.45; color: var(--hg-muted); border-right: 1px solid var(--hg-line); background: var(--hg-surface); }
.hgv2-guarantees li:last-child { border-right: 0; }
.hgv2-guarantees strong { display: block; color: var(--hg-text); font-size: 16px; font-weight: 500; }

/* ---------- FAQ ---------- */
.hgv2-faq { display: grid !important; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px) !important; align-items: start; }
.hgv2-faq__head { position: sticky; top: 112px; }
.hgv2-faq__list { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Learning lab ---------- */
.hgv2-post { display: flex; flex-direction: column; gap: 12px; }
.hgv2-post__img { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 4px; }
.hgv2-post__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .hgv2-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
    .hgv2-timeline::before { display: none; }
    .hgv2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hgv2-step::after { display: none; }
}
@media (max-width: 1024px) {
    .hgv2-hero__grid, .hgv2-sol__panel, .hgv2-case, .hgv2-quote-grid, .hgv2-faq, .hgv2-int { grid-template-columns: 1fr !important; }
    .hgv2-hero__visual { max-width: 640px; }
    .hgv2-sol__media, .hgv2-faq__head { position: static; }
    .hgv2-int__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--hg-gutter)); padding: 0 var(--hg-gutter); }
    .hgv2-int__tab { flex: none; white-space: nowrap; }
    .hgv2-guarantees li { border-right: 0; border-bottom: 1px solid var(--hg-line); }
}
@media (max-width: 760px) {
    .hgv2 { padding-top: 84px; }
    .hgv2-sol__tabs { grid-template-columns: 1fr; }
    .hgv2-sol__tab-icon { display: none; }
    .hgv2-sol__tab { grid-template-columns: 1fr; padding: 12px 16px; }
    .hgv2-steps, .hgv2-timeline { grid-template-columns: 1fr; }
    .hgv2-tech { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hgv2-problem { min-height: 0; }
    .hgv2-seg { display: flex; border-radius: 16px; }
    .hgv2-seg__btn { flex: 1 1 auto; text-align: center; }
    .hgv2-btn { width: 100%; }
    .hgv2-actions { width: 100%; }
}
