/* AfriCapital Connect — homepage
   Scoped under .home so nothing leaks into other pages. */

.home {
  --ink:#10231f; --ink-2:#183330; --ink-soft:#4a5c56;
  --ground:#e9ede8; --paper:#fdfdfb; --brass:#9a7b2f; --brass-2:#c3a35a;
  --rule:#c8d1c9; --rule-2:#aebaaf;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif;
  --ease:cubic-bezier(.22,.61,.36,1);
  color:var(--ink);
}

.home h1, .home h2, .home h3 { font-family:var(--serif); font-weight:400; letter-spacing:-.005em; margin:0; }
.home p { margin:0; }

.h-wrap { width:100%; max-width:72rem; margin:0 auto; padding:0 clamp(1.25rem,4vw,2rem); }

.h-eyebrow {
  display:inline-flex; align-items:center; gap:.6rem; margin:0 0 1.5rem;
  font-size:.75rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--brass);
}
.h-eyebrow::before { content:""; width:1.5rem; height:1px; background:currentColor; }

.h-btns { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:2.25rem; }
.h-btn {
  display:inline-flex; align-items:center; gap:.55rem; padding:.9rem 1.5rem;
  font-size:.95rem; font-weight:600; text-decoration:none; border-radius:4px;
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.h-btn svg { transition:transform .2s var(--ease); }
.h-btn:hover svg { transform:translateX(3px); }
.h-btn--solid { background:var(--ink); color:var(--paper); border:1px solid var(--ink); }
.h-btn--solid:hover { background:var(--ink-2); color:var(--paper); }
.h-btn--line { background:transparent; color:var(--ink); border:1px solid var(--rule-2); }
.h-btn--line:hover { border-color:var(--ink); color:var(--ink); }
.h-btn--brass { background:var(--brass); color:#fff; border:1px solid var(--brass); }
.h-btn--brass:hover { background:#86692a; color:#fff; }
.h-btn--ghost-light { background:transparent; color:var(--paper); border:1px solid rgba(255,255,255,.3); }
.h-btn--ghost-light:hover { border-color:var(--paper); color:var(--paper); }

.h-section { padding:clamp(4rem,9vw,7rem) 0; }
.h-head { max-width:40rem; margin-bottom:clamp(2.5rem,5vw,3.75rem); }
.h-head h2 { font-size:clamp(1.9rem,3.6vw,2.6rem); line-height:1.15; }
.h-head p { margin-top:1rem; color:var(--ink-soft); font-size:1.1rem; line-height:1.65; }

/* ---------------- hero ---------------- */
.h-hero { background:var(--paper); border-bottom:1px solid var(--rule); padding:clamp(3.5rem,8vw,6.5rem) 0 clamp(3.5rem,7vw,5.5rem); overflow:hidden; }
.h-hero__grid { display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(2.5rem,6vw,5rem); align-items:center; }
.h-hero h1 { font-size:clamp(2.4rem,5.2vw,3.9rem); line-height:1.06; }
.h-hero h1 em { font-style:italic; color:var(--brass); }
.h-hero .lead { margin-top:1.5rem; max-width:36rem; font-size:1.15rem; line-height:1.7; color:var(--ink-soft); }
.h-hero__note { margin-top:1.75rem; font-size:.875rem; color:var(--ink-soft); display:flex; align-items:center; gap:.5rem; }
.h-hero__note svg { color:var(--brass); flex:none; }

/* example opportunity card */
.h-sample { position:relative; }
.h-sample::before {
  content:""; position:absolute; inset:-1.5rem -1.5rem auto auto; width:70%; height:80%;
  background:var(--ground); border-radius:4px; z-index:0;
}
.h-card {
  position:relative; z-index:1; background:var(--paper); border:1px solid var(--rule); border-radius:4px;
  box-shadow:0 1px 2px rgba(16,35,31,.04), 0 24px 48px -24px rgba(16,35,31,.25);
}
.h-card__tag {
  position:absolute; top:-.65rem; left:1.25rem; padding:.2rem .6rem; background:var(--ink); color:var(--paper);
  font-size:.68rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; border-radius:2px;
}
.h-card__top { padding:1.6rem 1.5rem 1.25rem; border-bottom:1px solid var(--rule); }
.h-card__market { font-size:.75rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-soft); }
.h-card__title { margin-top:.4rem; font-family:var(--serif); font-size:1.3rem; line-height:1.3; }
.h-card__rows { padding:.5rem 1.5rem; }
.h-row { display:flex; justify-content:space-between; gap:1rem; padding:.75rem 0; font-size:.9rem; border-bottom:1px dashed var(--rule); }
.h-row:last-child { border-bottom:0; }
.h-row dt { color:var(--ink-soft); }
.h-row dd { margin:0; font-weight:600; text-align:right; }
.h-pill { display:inline-flex; align-items:center; gap:.35rem; padding:.15rem .55rem; border-radius:999px; font-size:.78rem; font-weight:600; background:#e8f2ec; color:#2e6b4f; }
.h-pill::before { content:""; width:.4rem; height:.4rem; border-radius:50%; background:currentColor; }
.h-card__foot { padding:1rem 1.5rem; background:#f5f7f4; border-top:1px solid var(--rule); font-size:.8rem; color:var(--ink-soft); }

/* ---------------- trust strip ---------------- */
.h-strip { background:var(--ink); color:#cfd9d3; }
.h-strip ul { list-style:none; margin:0; padding:1.35rem 0; display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
.h-strip li { display:flex; align-items:center; gap:.65rem; font-size:.9rem; }
.h-strip svg { color:var(--brass-2); flex:none; }

/* ---------------- boundary ---------------- */
.h-boundary { background:var(--ground); }
.h-boundary__grid { display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,5vw,4rem); align-items:start; }
.h-boundary__text h2 { font-size:clamp(1.9rem,3.6vw,2.6rem); line-height:1.15; }
.h-boundary__text p { margin-top:1.25rem; color:var(--ink-soft); font-size:1.08rem; line-height:1.7; }
.h-compare { display:grid; grid-template-columns:1fr 1fr; background:var(--paper); border:1px solid var(--rule); border-radius:4px; overflow:hidden; }
.h-compare__col { padding:1.75rem 1.5rem; }
.h-compare__col + .h-compare__col { border-left:1px solid var(--rule); background:#f5f7f4; }
.h-compare h3 { font-family:inherit; font-size:.75rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; margin-bottom:1.1rem; }
.h-compare__col:first-child h3 { color:#2e6b4f; }
.h-compare__col:last-child h3 { color:#8f2d25; }
.h-compare ul { list-style:none; margin:0; padding:0; }
.h-compare li { display:flex; gap:.6rem; align-items:flex-start; padding:.55rem 0; font-size:.95rem; line-height:1.45; }
.h-compare li svg { flex:none; margin-top:.2rem; }
.h-compare__col:first-child li svg { color:#2e6b4f; }
.h-compare__col:last-child li svg { color:#8f2d25; }

/* ---------------- features ---------------- */
.h-features { background:var(--paper); }
.h-feat-grid { display:grid; grid-template-columns:repeat(2,1fr); border-top:1px solid var(--rule); border-left:1px solid var(--rule); }
.h-feat { padding:2.25rem 2rem 2.5rem; border-right:1px solid var(--rule); border-bottom:1px solid var(--rule); transition:background .25s var(--ease); }
.h-feat:hover { background:#f7f9f6; }
.h-feat__num { font-size:.8rem; font-weight:600; letter-spacing:.1em; color:var(--brass); }
.h-feat h3 { margin-top:1rem; font-size:1.4rem; line-height:1.3; }
.h-feat p { margin-top:.75rem; color:var(--ink-soft); line-height:1.7; }

/* ---------------- steps ---------------- */
.h-steps { background:var(--ground); }
.h-steps ol { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; counter-reset:s; position:relative; }
.h-steps ol::before { content:""; position:absolute; top:1.25rem; left:1.25rem; right:1.25rem; height:1px; background:var(--rule-2); }
.h-steps li { position:relative; counter-increment:s; }
.h-steps li::before {
  content:counter(s); position:relative; z-index:1; display:grid; place-items:center;
  width:2.5rem; height:2.5rem; border-radius:50%; background:var(--paper); border:1px solid var(--ink);
  font-family:var(--serif); font-size:1.05rem; color:var(--ink);
}
.h-steps li:last-child::before { background:var(--ink); color:var(--paper); }
.h-steps strong { display:block; margin-top:1.25rem; font-family:var(--serif); font-weight:400; font-size:1.2rem; line-height:1.3; }
.h-steps span { display:block; margin-top:.5rem; color:var(--ink-soft); font-size:.95rem; line-height:1.6; }

/* ---------------- closing ---------------- */
.h-close { background:var(--ink); color:#cfd9d3; position:relative; overflow:hidden; }
.h-close::before {
  content:""; position:absolute; width:520px; height:520px; right:-160px; top:-200px; border-radius:50%;
  background:radial-gradient(circle, rgba(195,163,90,.18), transparent 65%);
}
.h-close__inner { position:relative; display:grid; grid-template-columns:1.3fr .7fr; gap:3rem; align-items:end; }
.h-close h2 { color:var(--paper); font-size:clamp(2rem,4vw,2.9rem); line-height:1.12; }
.h-close p { margin-top:1.1rem; max-width:34rem; font-size:1.08rem; line-height:1.7; color:#a9b8b0; }
.h-close .h-btns { margin-top:0; justify-content:flex-end; }

/* ---------------- motion ---------------- */
.h-rise { animation:h-rise .8s var(--ease) both; }
.h-d1 { animation-delay:.08s; } .h-d2 { animation-delay:.16s; } .h-d3 { animation-delay:.28s; }
@keyframes h-rise { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { .home *, .home *::before { animation:none !important; transition:none !important; } }

/* ---------------- responsive ---------------- */
@media (max-width:960px) {
  .h-hero__grid, .h-boundary__grid, .h-close__inner { grid-template-columns:1fr; }
  .h-sample { max-width:28rem; }
  .h-strip ul { grid-template-columns:repeat(2,1fr); }
  .h-steps ol { grid-template-columns:repeat(2,1fr); row-gap:2.5rem; }
  .h-steps ol::before { display:none; }
  .h-close .h-btns { justify-content:flex-start; }
}
@media (max-width:620px) {
  .h-feat-grid, .h-compare { grid-template-columns:1fr; }
  .h-compare__col + .h-compare__col { border-left:0; border-top:1px solid var(--rule); }
  .h-strip ul, .h-steps ol { grid-template-columns:1fr; }
}

/* ACC-HOME-TOOL */
.h-tool { background: var(--ground); border-bottom: 1px solid var(--rule); }
.h-tool__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 2.25rem; padding-bottom: 2.25rem; }
.h-tool .h-eyebrow { margin-bottom: .75rem; }
.h-tool h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.2; }
.h-tool p { margin-top: .5rem; max-width: 40rem; color: var(--ink-soft); line-height: 1.6; }

/* ACC-HX — animated hero and transfer-tool section */

/* ---------- hero ---------- */
.hx {
  position: relative; overflow: hidden; color: #cfd9d3;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(195,163,90,.10), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(74,124,106,.18), transparent 70%),
    var(--ink);
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5rem);
}
.hx::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 75%);
}
.hx__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hx__eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.4rem; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); }
.hx__eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }
.hx h1 { color: var(--paper); font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.06; }
.hx h1 em { font-style: italic; color: var(--brass-2); }
.hx__lead { margin-top: 1.4rem; max-width: 34rem; font-size: 1.12rem; line-height: 1.7; color: #b9c6bf; }
.hx .h-btns { margin-top: 2.1rem; }

.hx__new {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.9rem; padding: .5rem .9rem .5rem .5rem;
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.04);
  font-size: .85rem; color: #d9e1dc; text-decoration: none; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.hx__new span { padding: .15rem .55rem; border-radius: 999px; background: var(--brass); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hx__new:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.07); color: #fff; }
.hx__new svg { transition: transform .2s var(--ease); }
.hx__new:hover svg { transform: translateX(3px); }

/* ---------- illustration ---------- */
.hx__art { position: relative; }
.hx__map { display: block; width: 100%; height: auto; }
.hx__ring { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1; }
.hx__lat { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 1; }
.hx__arc { fill: none; stroke: rgba(195,163,90,.22); stroke-width: 1.2; }
.hx__run {
  fill: none; stroke: var(--brass-2); stroke-width: 1.8; stroke-linecap: round;
  stroke-dasharray: 10 260; animation: hx-run 4.2s linear infinite;
}
.hx__run.hx-2 { animation-delay: -1.2s; }
.hx__run.hx-3 { animation-delay: -2.1s; }
.hx__run.hx-4 { animation-delay: -3s; }
@keyframes hx-run { from { stroke-dashoffset: 270; } to { stroke-dashoffset: 0; } }

.hx__city circle { fill: #d9e1dc; }
.hx__hub circle:not(.hx__pulse) { fill: var(--brass-2); }
.hx__city text, .hx__hub text { fill: #8ea096; font-family: var(--sans, -apple-system, "Segoe UI", Roboto, Arial, sans-serif); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.hx__hub text { fill: #d9e1dc; }
.hx__pulse { fill: none; stroke: var(--brass-2); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: hx-pulse 3s var(--ease) infinite; }
.hx__pulse.hx-2 { animation-delay: -.75s; }
.hx__pulse.hx-3 { animation-delay: -1.5s; }
.hx__pulse.hx-4 { animation-delay: -2.25s; }
@keyframes hx-pulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(3.6); opacity: 0; } }

.hx__chip {
  position: absolute; display: inline-flex; align-items: center; gap: .55rem; padding: .6rem .9rem;
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  background: rgba(16,35,31,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .8rem; font-weight: 500; color: #e7ece9; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); animation: hx-float 6s ease-in-out infinite;
}
.hx__chip--1 { top: 6%; right: 2%; }
.hx__chip--2 { top: 46%; left: -4%; animation-delay: -2s; }
.hx__chip--3 { bottom: 4%; right: 12%; animation-delay: -4s; }
.hx__tick { flex: none; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--brass); position: relative; }
.hx__tick::after { content: ""; position: absolute; left: .34rem; top: .2rem; width: .28rem; height: .5rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes hx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- transfer tool section ---------- */
.hx-tool { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(4rem, 9vw, 6.5rem) 0; }
.hx-tool__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hx-tool h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.15; }
.hx-tool__copy > p { margin-top: 1rem; font-size: 1.08rem; line-height: 1.7; color: var(--ink-soft); }
.hx-tool__points { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: .7rem; }
.hx-tool__points li { position: relative; padding-left: 1.75rem; line-height: 1.5; }
.hx-tool__points li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--good-bg, #e8f2ec); }
.hx-tool__points li::after { content: ""; position: absolute; left: .37rem; top: .32rem; width: .28rem; height: .5rem; border: solid var(--good, #2e6b4f); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.hx-tool__preview {
  padding: 1.5rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--ground);
  box-shadow: 0 1px 2px rgba(16,35,31,.04), 0 24px 48px -28px rgba(16,35,31,.35);
}
.hx-tool__bar-head { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.hx-tool__bar-head strong { color: var(--ink); letter-spacing: 0; font-size: .85rem; }
.hx-tool__row { padding: .95rem 1rem; margin-bottom: .6rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.hx-tool__row.is-best { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--brass); }
.hx-tool__name { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 600; }
.hx-tool__name em { margin-left: auto; padding: .12rem .5rem; border-radius: 999px; background: #e8f2ec; color: #2e6b4f; font-size: .68rem; font-style: normal; font-weight: 600; }
.hx-tool__rank { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--rule-2); font-family: var(--serif); font-size: .8rem; font-weight: 400; }
.hx-tool__row.is-best .hx-tool__rank { background: var(--ink); border-color: var(--ink); color: #fff; }
.hx-tool__track { height: 8px; margin-top: .7rem; border-radius: 4px; background: var(--ground); overflow: hidden; }
.hx-tool__track i { display: block; height: 100%; border-radius: 4px; background: var(--rule-2); transform-origin: left; animation: hx-grow 1s var(--ease) both; }
.hx-tool__row.is-best .hx-tool__track i { background: var(--ink); }
@keyframes hx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hx-tool__foot { margin: .9rem 0 0; font-size: .78rem; color: var(--ink-soft); text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hx__grid, .hx-tool__grid { grid-template-columns: 1fr; }
  .hx__art { max-width: 34rem; margin: 0 auto; }
  .hx__chip--2 { left: 0; }
}
@media (max-width: 560px) {
  .hx__chip { display: none; }
  .hx__new { font-size: .8rem; }
}

/* ---------- reduced motion: everything stops ---------- */
@media (prefers-reduced-motion: reduce) {
  .hx__run, .hx__pulse, .hx__chip, .hx-tool__track i { animation: none !important; }
  .hx__pkt { display: none; }
  .hx__run { stroke-dasharray: none; stroke: rgba(195,163,90,.5); }
}
/* ACC-HX-END */
