/* IHESAMS Marketing Site */

body.mkt { background: var(--ih-bg); color: var(--ih-text); }
.mkt-shell { max-width: 1180px; margin: 0 auto; padding: 0 var(--ih-sp-24); }
@media (max-width: 767px) { .mkt-shell { padding: 0 var(--ih-sp-16); } }

/* ---- Nav ---- */
.mkt-nav { position: sticky; top: 0; z-index: 100; background: rgba(248,250,252,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ih-border); }
[data-theme="dark"] .mkt-nav { background: rgba(11,18,32,.85); }
.mkt-nav-inner { display: flex; align-items: center; gap: var(--ih-sp-32); height: 68px; }
.mkt-brand { display: flex; align-items: center; gap: var(--ih-sp-8); font-weight: 800; font-size: var(--ih-fs-18); color: var(--ih-text); text-decoration: none; }
.mkt-nav-links { display: flex; gap: var(--ih-sp-24); margin-left: var(--ih-sp-16); flex: 1; }
.mkt-nav-links a { color: var(--ih-text-muted); font-weight: 600; font-size: var(--ih-fs-14); text-decoration: none; }
.mkt-nav-links a:hover { color: var(--ih-primary); }
.mkt-nav-actions { display: flex; gap: var(--ih-sp-8); align-items: center; }
.mkt-burger { display: none; background: none; border: 1px solid var(--ih-border); border-radius: var(--ih-radius-sm); width: 38px; height: 38px; color: var(--ih-text); }
.mkt-nav-mobile { display: none; flex-direction: column; padding: var(--ih-sp-8) var(--ih-sp-24) var(--ih-sp-16); border-top: 1px solid var(--ih-border); }
.mkt-nav-mobile a { padding: var(--ih-sp-8) 0; color: var(--ih-text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ih-border); }
.mkt-nav-mobile.is-open { display: flex; }
@media (max-width: 860px) {
    .mkt-nav-links, .mkt-nav-actions { display: none; }
    .mkt-burger { display: inline-grid; place-items: center; }
}

/* ---- Hero ---- */
.mkt-hero { padding: var(--ih-sp-48) 0 var(--ih-sp-32); }
.mkt-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--ih-sp-48); align-items: center; }
@media (max-width: 991px) { .mkt-hero-grid { grid-template-columns: 1fr; gap: var(--ih-sp-32); } }
.mkt-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ih-fs-13); font-weight: 700; color: var(--ih-primary); background: var(--ih-primary-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: var(--ih-sp-16); }
.mkt-hero h1 { font-size: clamp(2rem, 4vw, var(--ih-fs-36)); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: var(--ih-sp-16); }
.mkt-hero h1 span { color: var(--ih-primary); }
.mkt-hero-sub { font-size: var(--ih-fs-18); color: var(--ih-text-muted); max-width: 46ch; margin-bottom: var(--ih-sp-24); line-height: 1.6; }
.mkt-hero-ctas { display: flex; flex-wrap: wrap; gap: var(--ih-sp-12); margin-bottom: var(--ih-sp-24); }
.mkt-hero-trust { display: flex; flex-wrap: wrap; gap: var(--ih-sp-24); font-size: var(--ih-fs-13); color: var(--ih-text-muted); }
.mkt-hero-trust b { color: var(--ih-text); font-size: var(--ih-fs-20); display: block; font-weight: 800; }

/* ---- Hero illustration: device + QR + dashboard card ---- */
.mkt-illustration { position: relative; height: 420px; }
.mkt-illu-card { position: absolute; border-radius: var(--ih-radius-lg); background: var(--ih-surface); border: 1px solid var(--ih-border); box-shadow: var(--ih-shadow-lg); }
.mkt-illu-phone { width: 220px; height: 340px; left: 8%; top: 10px; padding: 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mkt-illu-phone .notch { width: 60px; height: 6px; border-radius: 3px; background: var(--ih-border); }
.mkt-illu-qr { width: 132px; height: 132px; border-radius: 12px; background: repeating-conic-gradient(var(--ih-text) 0% 25%, transparent 0% 50%) 0 0/16px 16px; padding: 10px; position: relative; }
.mkt-illu-qr::before { content: ""; position: absolute; inset: 34px; background: var(--ih-surface); border-radius: 4px; }
.mkt-illu-qr i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: var(--ih-primary); }
.mkt-illu-phone .label { font-weight: 700; font-size: var(--ih-fs-13); }
.mkt-illu-phone .sub { font-size: var(--ih-fs-12); color: var(--ih-text-muted); text-align: center; }
.mkt-illu-badge { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-weight: 700; font-size: var(--ih-fs-13); }
.mkt-illu-badge.present { right: 6%; top: 18px; color: var(--ih-success); }
.mkt-illu-badge.present i { font-size: 1.2rem; }
.mkt-illu-dash { right: 0; bottom: 0; width: 62%; padding: var(--ih-sp-16); }
.mkt-illu-dash-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--ih-sp-12); }
.mkt-illu-dash-title { font-weight: 700; font-size: var(--ih-fs-13); }
.mkt-illu-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ih-sp-8); }
.mkt-illu-kpi { background: var(--ih-bg); border: 1px solid var(--ih-border); border-radius: var(--ih-radius-sm); padding: var(--ih-sp-8); }
.mkt-illu-kpi .n { font-weight: 800; font-size: var(--ih-fs-18); }
.mkt-illu-kpi .l { font-size: 10px; color: var(--ih-text-subtle); text-transform: uppercase; letter-spacing: .04em; }
.mkt-illu-conn { position: absolute; left: 30%; top: 48%; width: 22%; height: 2px; background: repeating-linear-gradient(90deg, var(--ih-primary) 0 6px, transparent 6px 12px); }
@media (max-width: 767px) { .mkt-illustration { height: 300px; } .mkt-illu-phone { width: 170px; height: 260px; left: 0; } .mkt-illu-qr { width: 96px; height: 96px; } .mkt-illu-dash { width: 68%; } .mkt-illu-conn { display: none; } }

/* ---- Institution strip ---- */
.mkt-strip { padding: var(--ih-sp-32) 0; border-top: 1px solid var(--ih-border); border-bottom: 1px solid var(--ih-border); }
.mkt-strip-label { text-align: center; font-size: var(--ih-fs-12); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ih-text-subtle); margin-bottom: var(--ih-sp-16); }
.mkt-strip-items { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ih-sp-12); }

/* ---- Section heading ---- */
.mkt-section { padding: var(--ih-sp-48) 0; }
.mkt-section-head { text-align: center; max-width: 640px; margin: 0 auto var(--ih-sp-32); }
.mkt-section-eyebrow { font-size: var(--ih-fs-13); font-weight: 700; color: var(--ih-primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--ih-sp-8); }
.mkt-section-title { font-size: var(--ih-fs-30); font-weight: 800; letter-spacing: -0.015em; margin-bottom: var(--ih-sp-8); }
.mkt-section-sub { color: var(--ih-text-muted); font-size: var(--ih-fs-16); }

/* ---- How it works ---- */
.mkt-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ih-sp-24); position: relative; }
@media (max-width: 860px) { .mkt-flow { grid-template-columns: 1fr; } }
.mkt-flow-step { position: relative; text-align: center; padding: 0 var(--ih-sp-12); }
.mkt-flow-num { width: 52px; height: 52px; border-radius: 50%; background: var(--ih-secondary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: var(--ih-fs-18); margin: 0 auto var(--ih-sp-16); position: relative; z-index: 2; }
.mkt-flow-step:nth-child(odd) .mkt-flow-num { background: var(--ih-primary); }
.mkt-flow-title { font-weight: 700; margin-bottom: 6px; }
.mkt-flow-body { font-size: var(--ih-fs-13); color: var(--ih-text-muted); }
.mkt-flow-line { display: none; }
@media (min-width: 861px) {
    .mkt-flow-step:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 50%; width: 100%; height: 2px; background: var(--ih-border); z-index: 1; }
}

/* ---- Feature grid ---- */
.mkt-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ih-sp-20); }
@media (max-width: 860px) { .mkt-feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mkt-feature-grid { grid-template-columns: 1fr; } }
.mkt-feature-card { padding: var(--ih-sp-20); border-radius: var(--ih-radius-lg); background: var(--ih-surface); border: 1px solid var(--ih-border); transition: transform 180ms ease, box-shadow 180ms ease; }
.mkt-feature-card:hover { transform: translateY(-3px); box-shadow: var(--ih-shadow-lg); }
.mkt-feature-icon { width: 46px; height: 46px; border-radius: var(--ih-radius-sm); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: var(--ih-sp-12); }

/* ---- Product visual (dashboard mockup) ---- */
.mkt-product { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--ih-sp-48); align-items: center; }
@media (max-width: 991px) { .mkt-product { grid-template-columns: 1fr; } }
.mkt-mock { border-radius: var(--ih-radius-lg); overflow: hidden; box-shadow: var(--ih-shadow-lg); border: 1px solid var(--ih-border); }
.mkt-mock-bar { display: flex; }
.mkt-mock-side { width: 26%; background: var(--ih-secondary); padding: var(--ih-sp-16) var(--ih-sp-12); }
.mkt-mock-side .b { height: 10px; border-radius: 4px; background: rgba(255,255,255,.08); margin-bottom: var(--ih-sp-8); }
.mkt-mock-side .b.active { background: var(--ih-primary); }
.mkt-mock-main { flex: 1; background: var(--ih-bg); padding: var(--ih-sp-16); display: flex; flex-direction: column; gap: var(--ih-sp-12); }
.mkt-mock-top { height: 26px; background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: 8px; }
.mkt-mock-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--ih-sp-8); }
.mkt-mock-kpi { background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: 8px; padding: var(--ih-sp-8); }
.mkt-mock-kpi .t { width: 20px; height: 20px; border-radius: 4px; background: var(--ih-primary-soft); margin-bottom: 6px; }
.mkt-mock-kpi .v { height: 8px; width: 60%; background: var(--ih-text); border-radius: 3px; opacity: .8; }
.mkt-mock-chart { flex: 1; min-height: 90px; background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: 8px; }

/* ---- CTA band ---- */
.mkt-cta { background: var(--ih-secondary); color: #fff; border-radius: var(--ih-radius-lg); padding: var(--ih-sp-48); text-align: center; }
.mkt-cta h2 { font-size: var(--ih-fs-30); font-weight: 800; margin-bottom: var(--ih-sp-8); }
.mkt-cta p { color: #B9C4D6; max-width: 46ch; margin: 0 auto var(--ih-sp-24); }

/* ---- Footer ---- */
.mkt-footer { border-top: 1px solid var(--ih-border); margin-top: var(--ih-sp-48); padding: var(--ih-sp-48) 0 var(--ih-sp-24); }
.mkt-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--ih-sp-24); }
@media (max-width: 767px) { .mkt-footer-grid { grid-template-columns: 1fr 1fr; } }
.mkt-footer-head { font-size: var(--ih-fs-12); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--ih-text-subtle); margin-bottom: var(--ih-sp-12); }
.mkt-footer-grid a { display: block; color: var(--ih-text-muted); font-size: var(--ih-fs-14); text-decoration: none; margin-bottom: var(--ih-sp-8); }
.mkt-footer-grid a:hover { color: var(--ih-primary); }
.mkt-footer-bottom { border-top: 1px solid var(--ih-border); margin-top: var(--ih-sp-24); padding-top: var(--ih-sp-16); font-size: var(--ih-fs-13); color: var(--ih-text-subtle); }
