/* =====================================================
   Megabre ana sayfa: yazılım ailesi (hero + ürün bölümleri).
   Tüm kurallar .mh içine hapsedilmiştir; tema CSS'ini etkilemez, ondan etkilenmez.
   Dünya: ürün kataloğu. Açık krem kâğıt, her ürünün kendi yumuşak rengi, tek koyu bölüm (CPalius).
   ===================================================== */
.mh {
    --mh-ink: #11161c;
    --mh-paper: #f7f3ea;
    --mh-text: #161b21;
    --mh-muted: #4e5964;
    --mh-line: rgba(17, 22, 28, .2);
    --mh-line-light: rgba(245, 241, 232, .22);
    --mh-brick: #8f2a1b;
    --mh-peach: #f6e1d7;
    --mh-sage: #e0eadf;
    --mh-forest: #173f35;
    --mh-teal: #6fd3b6;
    --mh-gold: #f2b84b;
    --mh-display: 'Bricolage Grotesque', 'Poppins', system-ui, sans-serif;
    color: var(--mh-text);
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}
.mh *, .mh *::before, .mh *::after { box-sizing: border-box; }
.mh h1, .mh h2, .mh h3, .mh p, .mh ul, .mh figure { margin: 0; padding: 0; }
.mh h1, .mh h2, .mh h3 { font-family: var(--mh-display); font-weight: 800; letter-spacing: -.025em; text-wrap: balance; text-transform: none; }
.mh ul { list-style: none; }
.mh img { display: block; max-width: 100%; height: auto; }
.mh a, .mh a:hover { text-decoration: none; }
.mh ::selection { background: var(--mh-gold); color: var(--mh-ink); }
.mh a:focus-visible, .mh button:focus-visible, .mh input:focus-visible { outline: 3px solid #b86d00; outline-offset: 3px; }
.mh-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------ hero (açık) */
.mh-hero { background: var(--mh-paper); color: var(--mh-text); padding: 72px 0 80px; overflow: hidden; }
.mh-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.mh-hero h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1; color: var(--mh-ink); }
.mh-hero h1 em { font-style: normal; color: var(--mh-brick); }
.mh .mh-lead { margin-top: 1.4rem; max-width: 46ch; font-size: 1.08rem; color: var(--mh-muted); }
.mh .mh-actions { margin-top: 1.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }
.mh-btn { display: inline-block; padding: .85rem 1.5rem; border-radius: 4px; font-weight: 600; font-size: .95rem; background: var(--mh-ink); color: var(--mh-paper); transition: background .2s, transform .2s; }
.mh-btn:hover { background: #2a3440; color: var(--mh-paper); transform: translateY(-2px); }
.mh-link { color: inherit; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.mh-link:hover { color: inherit; border-bottom-width: 2px; }
.mh .mh-domain { margin-top: 2rem; display: flex; max-width: 520px; border: 1px solid var(--mh-ink); border-radius: 4px; overflow: hidden; background: #fff; }
.mh .mh-domain input { flex: 1; min-width: 0; padding: .85rem 1rem; background: transparent; border: 0; color: var(--mh-ink); font: inherit; }
.mh .mh-domain input::placeholder { color: #6f7a85; }
.mh .mh-domain button { padding: 0 1.3rem; border: 0; background: var(--mh-ink); color: var(--mh-paper); font: inherit; font-weight: 600; cursor: pointer; }
.mh .mh-domain button:hover { background: #2a3440; }
.mh .mh-index { margin-top: 2rem; max-width: 540px; display: grid; gap: .6rem; }
.mh .mh-index li { --c: var(--mh-brick); --t: var(--mh-peach); }
.mh .mh-index li:nth-child(2) { --c: var(--mh-forest); --t: var(--mh-sage); }
.mh .mh-index li:nth-child(3) { --c: #0d6b57; --t: #d9efe8; }
.mh .mh-index a { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem 1rem; align-items: center; padding: .8rem 1rem; background: #fff; border: 1px solid var(--mh-line); border-left: 5px solid var(--c); border-radius: 6px; color: var(--mh-ink); transition: transform .2s, box-shadow .2s, background .2s; }
.mh .mh-index a:hover { color: var(--mh-ink); background: var(--t); transform: translateX(4px); box-shadow: 0 10px 20px -14px rgba(17, 22, 28, .5); }
.mh .mh-index strong { grid-row: 1; grid-column: 1 / 3; font-family: var(--mh-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; color: var(--c); line-height: 1.2; }
.mh .mh-index span { grid-row: 2; grid-column: 1 / 3; color: var(--mh-muted); font-size: .85rem; line-height: 1.3; }
.mh .mh-index i { grid-row: 1 / 3; grid-column: 3; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--t); color: var(--c); font-style: normal; transition: background .2s, color .2s; }
.mh .mh-index a:hover i { background: var(--c); color: #fff; }

/* hero görsel yığını: üç gerçek ekran görüntüsü */
.mh-stack { position: relative; aspect-ratio: 1 / .92; }
.mh-stack figure { position: absolute; margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid rgba(17, 22, 28, .22); background: #fff; box-shadow: 0 28px 44px -26px rgba(17, 22, 28, .5); opacity: 0; transform: translateY(26px); animation: mh-rise .9s cubic-bezier(.16, 1, .3, 1) forwards; }
.mh-stack img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.mh-s1 { top: 0; right: 0; width: 86%; height: 62%; animation-delay: .05s !important; }
.mh-s2 { bottom: 0; left: 0; width: 52%; height: 56%; animation-delay: .2s !important; }
.mh-s3 { bottom: 6%; right: 0; width: 58%; height: 40%; animation-delay: .35s !important; }
@keyframes mh-rise { to { opacity: 1; transform: none; } }

/* ------------------------------------------------ ürün bölümleri */
.mh-chapter { padding: 96px 0; }
.mh-chapter h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.04; }
.mh-chapter-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.mh-chapter.mh-flip .mh-chapter-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.mh-chapter.mh-flip .mh-chapter-copy { order: 2; }
.mh-chapter p.mh-text { margin-top: 1.2rem; max-width: 48ch; font-size: 1.04rem; }
.mh .mh-facts { margin-top: 1.8rem; border-top: 1px solid var(--mh-line); }
.mh .mh-facts li { padding: .7rem 0; border-bottom: 1px solid var(--mh-line); font-size: .96rem; }
.mh .mh-chapter-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }
.mh-shots { position: relative; aspect-ratio: 1.15 / 1; }
.mh-shots figure { position: absolute; margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid rgba(17, 22, 28, .22); background: #fff; box-shadow: 0 26px 44px -26px rgba(17, 22, 28, .45); }
.mh-shots img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.mh-a { top: 0; left: 0; width: 88%; height: 70%; }
.mh-b { bottom: 0; right: 0; width: 56%; height: 44%; }

.mh-poc { background: var(--mh-peach); color: #4a1a12; }
.mh-poc h2 { color: var(--mh-brick); }
.mh-poc .mh-facts, .mh-poc .mh-facts li { border-color: rgba(143, 42, 27, .3); }
.mh-poc .mh-btn { background: var(--mh-brick); color: #fff; }
.mh-poc .mh-btn:hover { background: #6f1f13; color: #fff; }

.mh-emlak { background: var(--mh-sage); color: var(--mh-forest); }
.mh-emlak .mh-facts, .mh-emlak .mh-facts li { border-color: rgba(23, 63, 53, .3); }
.mh-emlak .mh-btn { background: var(--mh-forest); color: #fff; }
.mh-emlak .mh-btn:hover { background: #0f2e26; color: #fff; }

.mh-cp { background: var(--mh-ink); color: var(--mh-paper); }
.mh-cp .mh-btn { background: var(--mh-teal); color: var(--mh-ink); }
.mh-cp .mh-btn:hover { background: #95e6cf; color: var(--mh-ink); }
.mh-cp a:focus-visible { outline-color: var(--mh-gold); }
.mh-cp-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: end; }
.mh .mh-cp-head p { max-width: 50ch; color: #c9cfd6; font-size: 1.04rem; }
.mh .mh-family { margin-top: 3.2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.mh .mh-family a { display: block; color: var(--mh-paper); }
.mh .mh-family a:hover { color: var(--mh-paper); }
.mh .mh-family figure { margin: 0 0 .9rem; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; border: 1px solid var(--mh-line-light); }
.mh .mh-family img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.mh .mh-family a:hover img { transform: scale(1.04); }
.mh .mh-family h3 { font-size: 1.25rem; }
.mh .mh-family p { margin-top: .3rem; font-size: .9rem; color: #aab2bb; }
.mh .mh-family span { display: inline-block; margin-top: .6rem; padding: .1rem .55rem; border: 1px solid var(--mh-gold); border-radius: 3px; color: var(--mh-gold); font-size: .75rem; font-weight: 600; }
.mh .mh-free { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--mh-line-light); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.mh .mh-free p { color: #c9cfd6; }
.mh .mh-free strong { color: var(--mh-teal); font-family: var(--mh-display); font-size: 1.2rem; }

@media (max-width: 991px) {
    .mh-hero { padding: 48px 0 56px; }
    .mh-hero-grid, .mh-chapter-grid, .mh-chapter.mh-flip .mh-chapter-grid, .mh-cp-head { grid-template-columns: 1fr; gap: 40px; }
    .mh-chapter.mh-flip .mh-chapter-copy { order: 0; }
    .mh-chapter { padding: 64px 0; }
    .mh .mh-family { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh .mh-index a { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 575px) {
    .mh .mh-family { grid-template-columns: 1fr; }


}
@media (prefers-reduced-motion: reduce) {
    .mh-stack figure { animation: none; opacity: 1; transform: none; }
    .mh-btn, .mh .mh-index a, .mh .mh-family img { transition: none; }
}
