/* Ana sayfa — interaktif hero demo (CSS animasyonlar) */

.mk-hero-demo {
    margin-bottom: 2.5rem;
}

.mk-hero-demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.mk-hero-demo-copy .mk-home-title {
    max-width: none;
    margin-bottom: 1.25rem;
}

.mk-hero-demo-copy .mk-home-cta-row {
    margin-bottom: 1.5rem;
}

/* Dinamik metin panelleri */
.mk-hero-demo-dynamic {
    position: relative;
    min-height: 10.5rem;
    margin-bottom: 0.5rem;
}

.mk-hero-copy-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

.mk-hero-copy-panel.is-active {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.mk-hero-module-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mk-primary);
    margin-bottom: 0.65rem;
}

.mk-hero-scene-title {
    font-family: var(--mk-font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.25;
    margin: 0 0 0.65rem;
    color: var(--mk-text);
}

.mk-hero-scene-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--mk-muted);
    margin: 0;
    max-width: 520px;
}

/* Sekmeler */
.mk-hero-demo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.mk-hero-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--mk-border);
    background: rgba(255, 255, 255, 0.85);
    color: var(--mk-muted);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.mk-hero-tab:hover {
    border-color: var(--mk-primary-light);
    color: var(--mk-primary);
}

.mk-hero-tab.is-active {
    background: var(--mk-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 24px rgba(43, 95, 96, 0.28);
}

.mk-hero-tab--ai.is-active {
    background: linear-gradient(135deg, #4285f4 0%, #9b72cb 45%, #d96570 100%);
    box-shadow: 0 8px 28px rgba(66, 133, 244, 0.35);
}

.mk-hero-badge--ai {
    background: linear-gradient(135deg, #4285f4, #d96570);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.mk-hero-badge--template { color: #6366f1; }
.mk-hero-badge--sign { color: #0d9488; }

.mk-hero-device--premium {
    transform: perspective(800px) rotateY(-2deg);
    transition: transform 0.4s ease;
}

.mk-hero-device--premium:hover {
    transform: perspective(800px) rotateY(0deg);
}

.mk-hero-device-screen {
    min-height: 400px;
}

.mk-hero-tab-ico {
    font-size: 0.85rem;
    line-height: 1;
}

.mk-hero-demo-progress {
    height: 3px;
    background: rgba(43, 95, 96, 0.12);
    border-radius: 999px;
    margin-top: 1rem;
    overflow: hidden;
    max-width: 420px;
}

.mk-hero-demo-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--mk-primary), var(--mk-accent));
    border-radius: inherit;
}

/* Cihaz çerçevesi */
.mk-hero-demo-stage-wrap {
    position: relative;
}

.mk-hero-device {
    position: relative;
    border-radius: 22px;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    padding: 0.65rem;
    box-shadow:
        0 40px 100px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.mk-hero-device-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(ellipse at 50% 50%, rgba(61, 138, 140, 0.35), transparent 65%);
    pointer-events: none;
    z-index: -1;
    filter: blur(24px);
}

.mk-hero-device-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.5rem 0.65rem;
}

.mk-hero-device-dots {
    display: flex;
    gap: 0.35rem;
}

.mk-hero-device-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mk-hero-device-dots i:nth-child(1) { background: #ff5f57; }
.mk-hero-device-dots i:nth-child(2) { background: #febc2e; }
.mk-hero-device-dots i:nth-child(3) { background: #28c840; }

.mk-hero-device-url {
    flex: 1;
    text-align: center;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
}

.mk-hero-device-screen {
    position: relative;
    min-height: 380px;
    border-radius: 14px;
    background: linear-gradient(165deg, #f8fafc 0%, #eef2f7 100%);
    overflow: hidden;
}

.mk-hero-scene {
    position: absolute;
    inset: 0;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s;
}

.mk-hero-scene.is-active {
    opacity: 1;
    visibility: visible;
}

.mk-hero-demo-caption {
    text-align: center;
    font-size: 0.78rem;
    color: var(--mk-muted);
    margin: 0.85rem 0 0;
    opacity: 0.85;
}

/* Ortak panel başlığı */
.mk-anim-panel-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
    color: #64748b;
}

.mk-anim-panel-head span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mk-primary);
}

.mk-anim-panel-head strong {
    color: #0f172a;
    font-weight: 700;
}

/* Giriş animasyonu */
.mk-hero-anim {
    opacity: 0;
    transform: translateY(10px);
    animation: mkHeroFadeUp 0.55s ease forwards;
    animation-delay: var(--mk-delay, 0s);
}

.mk-hero-scene.is-active .mk-hero-anim.mk-anim-restart,
.mk-hero-scene.is-active .mk-hero-anim {
    animation: mkHeroFadeUp 0.55s ease forwards;
}

@keyframes mkHeroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* —— Sahne 1: Rota —— */
.mk-anim-route {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    height: 100%;
}

.mk-anim-route-cal,
.mk-anim-route-map {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.mk-anim-cal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.65rem;
}

.mk-anim-cal-grid span {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    color: #94a3b8;
    border-radius: 6px;
}

.mk-anim-cal-grid span.is-busy {
    background: rgba(43, 95, 96, 0.12);
    color: var(--mk-primary);
    font-weight: 700;
}

.mk-anim-appt {
    font-size: 0.62rem;
    line-height: 1.45;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    background: #f0f8f8;
    border-left: 3px solid var(--mk-primary);
    margin-bottom: 0.4rem;
    color: #334155;
}

.mk-anim-appt em {
    display: block;
    font-style: normal;
    font-weight: 700;
    color: var(--mk-primary);
    font-size: 0.58rem;
    margin-bottom: 0.15rem;
}

.mk-anim-route-map {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: linear-gradient(180deg, #f0f7f4 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.mk-anim-map-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    z-index: 2;
}

.mk-anim-map-title {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--mk-primary);
}

.mk-anim-map-live {
    font-size: 0.52rem;
    font-weight: 700;
    color: #16a34a;
    background: rgba(34, 197, 94, 0.12);
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    animation: mkMapLiveBlink 2s ease-in-out infinite;
}

@keyframes mkMapLiveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.mk-anim-map-svg {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.mk-anim-map-svg--real {
    display: block;
    min-height: 140px;
}

.mk-anim-map-block {
    animation: mkMapFadeIn 0.5s ease backwards;
}

.mk-anim-map-block:nth-child(5) { animation-delay: 0.1s; }
.mk-anim-map-block:nth-child(6) { animation-delay: 0.15s; }
.mk-anim-map-block:nth-child(7) { animation-delay: 0.2s; }
.mk-anim-map-block:nth-child(8) { animation-delay: 0.25s; }

@keyframes mkMapFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mk-anim-map-road {
    opacity: 0.95;
}

.mk-anim-map-road--main {
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.06));
}

.mk-anim-route-line {
    stroke: #2b5f60;
    stroke-dasharray: 280;
    stroke-dashoffset: 280;
    filter: drop-shadow(0 1px 2px rgba(43, 95, 96, 0.35));
    animation: mkRouteDraw 2.4s ease forwards 0.5s;
}

.mk-anim-pin-wrap {
    opacity: 0;
    transform-origin: center bottom;
    animation: mkPinDrop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.mk-anim-pin-wrap--a { animation-delay: 0.9s; }
.mk-anim-pin-wrap--b { animation-delay: 1.4s; }
.mk-anim-pin-wrap--c { animation-delay: 1.9s; }

@keyframes mkPinDrop {
    from { opacity: 0; transform: translateY(-18px) scale(0.6); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.mk-anim-pin-shape {
    fill: #2b5f60;
}

.mk-anim-pin-shape--active {
    fill: #0d9488;
}

.mk-anim-pin-dot {
    fill: #fff;
}

.mk-anim-pin-dot--active {
    fill: #fef3c7;
}

.mk-anim-pin-label {
    font-size: 7px;
    font-weight: 700;
    fill: #475569;
    font-family: var(--mk-font-body);
}

.mk-anim-map-pulse {
    opacity: 0;
    transform-origin: 192px 30px;
    transform-box: fill-box;
    animation: mkMapPulse 2s ease-out infinite 2.2s;
}

@keyframes mkMapPulse {
    0% { opacity: 0.65; transform: scale(0.5); }
    100% { opacity: 0; transform: scale(1.8); }
}

.mk-anim-pin {
    fill: #fff;
    stroke: var(--mk-primary);
    stroke-width: 2;
    transform-origin: center;
    animation: mkPinPop 0.4s ease backwards;
}

.mk-anim-pin--a { animation-delay: 0.5s; }
.mk-anim-pin--b { animation-delay: 1s; fill: var(--mk-primary); stroke: #fff; }
.mk-anim-pin--c { animation-delay: 1.5s; }

@keyframes mkRouteDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes mkPinPop {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.mk-anim-map-badge {
    display: block;
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: #0d9488;
    background: rgba(13, 148, 136, 0.12);
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
}

/* —— Sahne 2: İş emri —— */
.mk-anim-work-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.mk-anim-work-lane small {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.mk-anim-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 0.55rem;
    font-size: 0.62rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.mk-anim-card strong {
    display: block;
    color: var(--mk-primary);
    margin-bottom: 0.2rem;
}

.mk-anim-card span {
    color: #64748b;
    line-height: 1.4;
}

.mk-anim-card--active {
    border-color: rgba(43, 95, 96, 0.35);
    box-shadow: 0 8px 20px rgba(43, 95, 96, 0.15);
    animation: mkCardPulse 2s ease-in-out infinite 1.5s;
}

@keyframes mkCardPulse {
    0%, 100% { box-shadow: 0 8px 20px rgba(43, 95, 96, 0.15); }
    50% { box-shadow: 0 12px 28px rgba(43, 95, 96, 0.28); }
}

.mk-anim-card--done {
    background: #f0fdf4;
    border-color: rgba(34, 197, 94, 0.3);
}

.mk-anim-tech {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.1);
    font-size: 0.58rem;
    color: #0d9488;
    font-weight: 600;
}

/* —— Sahne 3: Rapor —— */
.mk-anim-report {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0.65rem;
    height: 100%;
}

.mk-anim-report-form {
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.mk-anim-field {
    margin-bottom: 0.5rem;
}

.mk-anim-field label {
    display: block;
    font-size: 0.58rem;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.mk-anim-field-fill {
    display: block;
    font-size: 0.65rem;
    padding: 0.4rem 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #0f172a;
    overflow: hidden;
    white-space: nowrap;
    animation: mkTypeReveal 0.8s ease forwards;
    animation-delay: calc(var(--mk-delay, 0s) + 0.15s);
}

@keyframes mkTypeReveal {
    from { max-width: 0; opacity: 0.5; }
    to { max-width: 100%; opacity: 1; }
}

.mk-anim-btn {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.45rem;
    border: none;
    border-radius: 8px;
    background: var(--mk-gradient);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    cursor: default;
    animation: mkBtnGlow 1.5s ease-in-out infinite 1.8s;
}

@keyframes mkBtnGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.12); box-shadow: 0 4px 16px rgba(43, 95, 96, 0.35); }
}

.mk-anim-report-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(20px) scale(0.92);
    animation: mkPdfSlide 0.65s ease forwards;
    animation-delay: var(--mk-delay, 1.5s);
}

@keyframes mkPdfSlide {
    to { transform: translateX(0) scale(1); opacity: 1; }
}

.mk-anim-pdf-page {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 3/4;
    background: #fff;
    border-radius: 6px;
    padding: 0.55rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.mk-anim-pdf-head {
    height: 14px;
    background: var(--mk-primary);
    border-radius: 3px;
    margin-bottom: 0.45rem;
    opacity: 0.85;
}

.mk-anim-pdf-line {
    height: 5px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 0.3rem;
}

.mk-anim-pdf-line--short { width: 65%; }

.mk-anim-pdf-sign {
    margin-top: 0.5rem;
    padding: 0.35rem;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    font-size: 0.52rem;
    color: #94a3b8;
    text-align: center;
}

.mk-anim-pdf-badge {
    margin-top: 0.5rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: #16a34a;
}

/* —— Sahne 4: Tanımlamalar —— */
.mk-anim-defs-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mk-anim-defs-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.35rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    font-size: 0.68rem;
    color: #334155;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.mk-anim-defs-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    flex-shrink: 0;
}

.mk-anim-defs-tag {
    margin-left: auto;
    font-style: normal;
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--mk-primary);
    background: rgba(43, 95, 96, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
}

.mk-anim-defs-footer {
    margin-top: 0.75rem;
    font-size: 0.62rem;
    color: #64748b;
}

.mk-anim-defs-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    margin-top: 0.35rem;
    overflow: hidden;
}

.mk-anim-defs-bar i {
    display: block;
    height: 100%;
    background: var(--mk-gradient);
    border-radius: inherit;
    animation: mkBarGrow 1s ease forwards 2s;
    width: 0 !important;
}

@keyframes mkBarGrow {
    to { width: 100% !important; }
}

/* —— Sahne 5: Şablon sürükle-bırak —— */
.mk-anim-template {
    position: relative;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 0.65rem;
    min-height: 340px;
}

.mk-anim-template-palette {
    background: #fff;
    border-radius: 12px;
    padding: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.mk-anim-template-palette small {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.mk-anim-tblock {
    font-size: 0.62rem;
    padding: 0.45rem 0.55rem;
    margin-bottom: 0.35rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #475569;
    cursor: default;
}

.mk-anim-tblock--logo {
    border-style: solid;
    background: rgba(43, 95, 96, 0.08);
    border-color: rgba(43, 95, 96, 0.25);
}

.mk-anim-tblock--drag {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(43, 95, 96, 0.12));
    border-color: rgba(99, 102, 241, 0.35);
    font-weight: 600;
    color: var(--mk-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.mk-anim-template-canvas {
    background: #fff;
    border-radius: 12px;
    padding: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
}

.mk-anim-canvas-slot {
    font-size: 0.6rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    margin-bottom: 0.35rem;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.mk-anim-canvas-slot--logo {
    background: rgba(43, 95, 96, 0.1);
    color: var(--mk-primary);
    font-weight: 600;
}

.mk-anim-canvas-drop {
    min-height: 72px;
    border-radius: 10px;
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(248, 250, 252, 0.8);
    transition: border-color 0.3s, background 0.3s;
    animation: mkDropZonePulse 2s ease-in-out infinite 1.5s;
}

@keyframes mkDropZonePulse {
    0%, 100% { border-color: #cbd5e1; background: rgba(248, 250, 252, 0.8); }
    50% { border-color: var(--mk-primary-light); background: rgba(43, 95, 96, 0.06); }
}

.mk-anim-drop-hint {
    font-size: 0.58rem;
    color: #94a3b8;
    animation: mkHintFade 0.4s ease forwards 2.2s;
}

@keyframes mkHintFade {
    to { opacity: 0; visibility: hidden; }
}

.mk-anim-dropped-sign {
    position: absolute;
    inset: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(43, 95, 96, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--mk-primary);
    opacity: 0;
    transform: scale(0.85);
    animation: mkDropLand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--mk-delay, 2.4s);
}

@keyframes mkDropLand {
    to { opacity: 1; transform: scale(1); }
}

/* Sürükleyen imleç */
.mk-anim-cursor {
    position: absolute;
    left: 18%;
    top: 52%;
    z-index: 10;
    color: #0f172a;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
    opacity: 0;
    animation: mkCursorDrag 3.2s ease-in-out forwards 0.8s;
}

.mk-hero-scene.is-active .mk-anim-cursor {
    animation: mkCursorDrag 3.2s ease-in-out forwards 0.8s;
}

@keyframes mkCursorDrag {
    0% { opacity: 0; transform: translate(0, 0); }
    8% { opacity: 1; transform: translate(0, 0); }
    20% { transform: translate(0, -8px) scale(1.05); }
    45% { transform: translate(95px, -45px) scale(1.05); }
    55% { transform: translate(95px, -45px) scale(0.95); }
    65% { transform: translate(95px, -45px) scale(1); opacity: 1; }
    85% { opacity: 0; transform: translate(95px, -40px); }
    100% { opacity: 0; }
}

.mk-anim-cursor-label {
    position: absolute;
    left: 14px;
    top: 12px;
    white-space: nowrap;
    font-size: 0.55rem;
    font-weight: 700;
    background: #6366f1;
    color: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* —— SAHNE: Yapay Zeka (öncelikli) —— */
.mk-anim-ai {
    position: relative;
    padding: 0.25rem;
    min-height: 360px;
}

.mk-anim-ai-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.mk-anim-mic {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(66, 133, 244, 0.35);
    background: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    color: #4285f4;
    cursor: default;
}

.mk-anim-mic--live {
    animation: mkMicPulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.45);
}

@keyframes mkMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.4); background: #fff; }
    50% { box-shadow: 0 0 0 8px rgba(66, 133, 244, 0); background: rgba(66, 133, 244, 0.08); }
}

.mk-anim-mic-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    opacity: 0;
    animation: mkWaveShow 9.5s linear forwards;
}

.mk-anim-mic-wave i {
    width: 3px;
    background: linear-gradient(180deg, #4285f4, #d96570);
    border-radius: 2px;
    animation: mkWaveBar 0.5s ease-in-out infinite alternate;
}

.mk-anim-mic-wave i:nth-child(1) { height: 8px; animation-delay: 0s; }
.mk-anim-mic-wave i:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.mk-anim-mic-wave i:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.mk-anim-mic-wave i:nth-child(4) { height: 16px; animation-delay: 0.15s; }

@keyframes mkWaveShow {
    0%, 5% { opacity: 0; }
    6%, 28% { opacity: 1; }
    29%, 100% { opacity: 0.3; }
}

@keyframes mkWaveBar {
    from { transform: scaleY(0.5); }
    to { transform: scaleY(1.2); }
}

.mk-anim-ai-textarea {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    min-height: 2.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.68rem;
    color: #334155;
    position: relative;
    animation: mkAiTextareaFade 9.5s linear forwards;
}

.mk-anim-ai-typed {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
    max-width: 0;
    animation: mkAiType 1.6s steps(22, end) forwards 0.5s;
}

.mk-scene-replay .mk-anim-ai-typed {
    max-width: 0;
    animation: mkAiType 1.6s steps(22, end) forwards 0.5s;
}

@keyframes mkAiType {
    to { max-width: 100%; border-right-color: var(--mk-primary); }
}

.mk-anim-ai-caret {
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: var(--mk-primary);
    vertical-align: text-bottom;
    margin-left: 1px;
    animation: mkCaretBlink 0.8s step-end infinite 2s;
}

@keyframes mkCaretBlink {
    50% { opacity: 0; }
}

@keyframes mkAiTextareaFade {
    0%, 48% { opacity: 1; }
    52%, 100% { opacity: 0.35; }
}

.mk-anim-ai-btn {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.45rem 0.75rem;
    border: none;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4285f4, #9b72cb, #d96570);
    opacity: 0;
    transform: scale(0.9);
    animation: mkAiBtnAppear 9.5s linear forwards;
    cursor: default;
}

@keyframes mkAiBtnAppear {
    0%, 24% { opacity: 0; transform: scale(0.9); }
    25%, 30% { opacity: 1; transform: scale(1); box-shadow: 0 4px 16px rgba(66, 133, 244, 0.35); }
    31%, 33% { transform: scale(0.94); box-shadow: 0 2px 8px rgba(66, 133, 244, 0.5); }
    34%, 100% { opacity: 1; transform: scale(1); }
}

.mk-hero-anim-cursor-ai {
    position: absolute;
    bottom: 1.1rem;
    right: 5.5rem;
    z-index: 12;
    color: #0f172a;
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
    opacity: 0;
    animation: mkAiCursorMove 9.5s ease-in-out forwards;
}

@keyframes mkAiCursorMove {
    0%, 22% { opacity: 0; transform: translate(40px, -30px); }
    24%, 26% { opacity: 1; transform: translate(40px, -30px); }
    30%, 32% { opacity: 1; transform: translate(0, 0); }
    33% { transform: translate(0, 2px) scale(0.92); }
    34%, 100% { opacity: 0; transform: translate(0, 0); }
}

.mk-anim-ai-result {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.06), rgba(217, 101, 112, 0.06));
    border: 1px solid rgba(66, 133, 244, 0.2);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    min-height: 3.2rem;
}

.mk-anim-ai-loading {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    background: linear-gradient(90deg, #4285f4, #d96570, #4285f4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    animation: mkAiLoading 9.5s linear forwards, mkShimmer 0.8s linear infinite;
}

@keyframes mkAiLoading {
    0%, 34% { opacity: 0; }
    35%, 46% { opacity: 1; }
    47%, 100% { opacity: 0; visibility: hidden; height: 0; margin: 0; }
}

@keyframes mkShimmer {
    to { background-position: 200% center; }
}

.mk-anim-ai-polished {
    font-size: 0.68rem;
    line-height: 1.55;
    color: #0f172a;
    margin: 0;
    opacity: 0;
    transform: translateY(8px);
    animation: mkAiPolished 9.5s ease forwards;
}

@keyframes mkAiPolished {
    0%, 46% { opacity: 0; transform: translateY(8px); }
    48%, 100% { opacity: 1; transform: none; background: linear-gradient(90deg, rgba(34, 197, 94, 0.12), transparent); padding: 0.35rem; border-radius: 6px; border-left: 3px solid #22c55e; }
}

/* —— Şablon PRO: stil paneli + önizleme —— */
.mk-anim-template--pro .mk-anim-style-panel {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.1);
}

.mk-anim-style-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.58rem;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.mk-anim-style-row span:first-child { font-weight: 600; }

.mk-anim-font-preview {
    font-family: var(--mk-font-display);
    font-style: normal;
    font-weight: 700;
    color: var(--mk-primary);
    animation: mkFontCycle 9.5s steps(3) forwards;
}

@keyframes mkFontCycle {
    0%, 33% { content: "Playfair"; }
}

.mk-anim-size-bar {
    display: block;
    width: 48px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    font-style: normal;
}

.mk-anim-size-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--mk-primary);
    border-radius: inherit;
    animation: mkSizeGrow 9.5s ease forwards;
}

@keyframes mkSizeGrow {
    0%, 15% { width: 30%; }
    30%, 100% { width: 85%; }
}

.mk-anim-colors {
    display: flex;
    gap: 4px;
}

.mk-anim-colors i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2b5f60;
}

.mk-anim-colors i:nth-child(2) { background: #6366f1; }
.mk-anim-colors i:nth-child(3) { background: #d96570; }

.mk-anim-colors i.is-active {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
    animation: mkColorPick 9.5s steps(1) forwards;
}

@keyframes mkColorPick {
    0%, 40% { outline-color: #0f172a; background: #2b5f60; }
    41%, 70% { outline-color: #6366f1; background: #6366f1; }
    71%, 100% { outline-color: #d96570; background: #d96570; }
}

.mk-anim-canvas-preview--styled {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 0.55rem;
}

.mk-anim-preview-logo {
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--mk-primary);
    padding: 0.25rem 0.4rem;
    background: rgba(43, 95, 96, 0.1);
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.35rem;
}

.mk-anim-preview-title {
    font-family: var(--mk-font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mk-primary);
    margin-bottom: 0.25rem;
    animation: mkTitleStyle 9.5s ease forwards;
}

@keyframes mkTitleStyle {
    0%, 40% { font-size: 0.65rem; color: #2b5f60; }
    50%, 100% { font-size: 0.82rem; color: #6366f1; }
}

.mk-anim-preview-body {
    font-size: 0.58rem;
    color: #94a3b8;
    margin-bottom: 0.45rem;
}

.mk-anim-tblock--sign {
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.35);
}

.mk-hero-anim-cursor-tpl {
    position: absolute;
    left: 12%;
    top: 38%;
    z-index: 10;
    color: #0f172a;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
    opacity: 0;
    animation: mkTplCursorDrag 9.5s ease-in-out forwards;
}

@keyframes mkTplCursorDrag {
    0%, 8% { opacity: 0; transform: translate(0, 0); }
    10%, 12% { opacity: 1; transform: translate(0, 0); }
    25%, 30% { transform: translate(110px, 55px) scale(1.05); opacity: 1; }
    32% { transform: translate(110px, 58px) scale(0.92); }
    35%, 100% { opacity: 0; }
}

.mk-scene-replay .mk-anim-dropped-sign {
    animation: mkDropLand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 2.8s;
}

/* —— Dijital İmza —— */
.mk-anim-sign {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 0.65rem;
    align-items: center;
    min-height: 360px;
}

.mk-anim-sign-phone {
    background: #0f172a;
    border-radius: 22px;
    padding: 0.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
    animation: mkPhoneFloat 3s ease-in-out infinite;
}

@keyframes mkPhoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.mk-anim-sign-notch {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    margin: 0 auto 0.4rem;
}

.mk-anim-sign-screen {
    background: #fff;
    border-radius: 16px;
    padding: 0.75rem;
}

.mk-anim-sign-screen strong {
    display: block;
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
}

.mk-anim-sign-screen p {
    font-size: 0.58rem;
    color: #64748b;
    margin: 0 0 0.65rem;
}

.mk-anim-sign-pad {
    position: relative;
    min-height: 88px;
    border: 2px dashed rgba(13, 148, 136, 0.45);
    border-radius: 10px;
    background: linear-gradient(180deg, #fff 0%, rgba(13, 148, 136, 0.03) 100%);
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mk-anim-sign-stroke {
    width: 92%;
    max-width: 168px;
    height: auto;
    overflow: visible;
}

.mk-anim-sign-script {
    font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive;
    font-size: 30px;
    font-weight: 400;
    stroke: #1a4d4e;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    paint-order: stroke fill;
    fill: rgba(43, 95, 96, 0.08);
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: mkSignTekseraDraw 2.8s ease-in-out forwards 0.5s;
}

@keyframes mkSignTekseraDraw {
    0% { stroke-dashoffset: 420; fill: transparent; }
    85% { stroke-dashoffset: 0; fill: transparent; }
    100% { stroke-dashoffset: 0; fill: rgba(43, 95, 96, 0.12); }
}

.mk-anim-sign-pen {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50% 50% 50% 0;
    background: #1a4d4e;
    transform: rotate(-45deg);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    opacity: 0;
    left: 12%;
    top: 55%;
    animation: mkSignPenMove 2.8s ease-in-out forwards 0.5s;
    pointer-events: none;
}

@keyframes mkSignPenMove {
    0% { opacity: 0; left: 8%; top: 60%; }
    8% { opacity: 1; }
    25% { left: 28%; top: 42%; }
    45% { left: 48%; top: 52%; }
    65% { left: 68%; top: 38%; }
    82% { left: 82%; top: 48%; opacity: 1; }
    100% { opacity: 0; left: 88%; top: 45%; }
}

.mk-anim-sign-label {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 0.5rem;
    color: #94a3b8;
    opacity: 1;
    animation: mkSignLabelHide 8.5s ease forwards;
}

@keyframes mkSignLabelHide {
    0%, 8% { opacity: 1; }
    12%, 100% { opacity: 0.35; }
}

.mk-anim-sign-approve {
    width: 100%;
    padding: 0.45rem;
    border: none;
    border-radius: 8px;
    background: var(--mk-gradient);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    opacity: 0;
    animation: mkSignApprove 8.5s ease forwards;
    cursor: default;
}

@keyframes mkSignApprove {
    0%, 55% { opacity: 0; transform: scale(0.95); }
    58%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 8px 24px rgba(43, 95, 96, 0.35); }
}

.mk-anim-sign-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: #0d9488;
    padding: 0.5rem 0.65rem;
    background: rgba(13, 148, 136, 0.12);
    border-radius: 10px;
    margin-bottom: 0.55rem;
    animation: mkSignBadgePop 8.5s ease forwards;
}

@keyframes mkSignBadgePop {
    0%, 62% { opacity: 0; transform: scale(0.9); }
    65%, 100% { opacity: 1; transform: scale(1); }
}

.mk-anim-sign-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.6rem;
    color: #475569;
}

.mk-anim-sign-list li {
    padding: 0.3rem 0;
    opacity: 0;
    animation: mkSignListItem 8.5s ease forwards;
}

.mk-anim-sign-list li:nth-child(1) { animation-delay: 2.8s; }
.mk-anim-sign-list li:nth-child(2) { animation-delay: 3.1s; }
.mk-anim-sign-list li:nth-child(3) { animation-delay: 3.4s; }

@keyframes mkSignListItem {
    to { opacity: 1; }
}

/* —— SMS & Mail —— */
.mk-anim-comms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    min-height: 360px;
}

.mk-anim-comms-sms,
.mk-anim-comms-mail {
    background: #fff;
    border-radius: 12px;
    padding: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.mk-anim-sms-bubble {
    font-size: 0.58rem;
    line-height: 1.45;
    padding: 0.5rem 0.6rem;
    border-radius: 12px 12px 12px 4px;
    margin-bottom: 0.4rem;
    opacity: 0;
    transform: translateX(-12px);
    animation: mkSmsIn 8s ease forwards;
}

.mk-anim-sms-bubble--out {
    background: var(--mk-gradient);
    color: #fff;
    animation-delay: 0.3s;
}

.mk-anim-sms-bubble--delivered {
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 600;
    font-size: 0.52rem;
    animation-delay: 1.2s;
    transform: translateX(0);
}

@keyframes mkSmsIn {
    to { opacity: 1; transform: translateX(0); }
}

.mk-anim-mail-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.55rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    opacity: 0;
    animation: mkMailIn 8s ease forwards 0.6s;
}

@keyframes mkMailIn {
    to { opacity: 1; }
}

.mk-anim-mail-head {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--mk-primary);
    margin-bottom: 0.4rem;
}

.mk-anim-mail-line {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 0.25rem;
}

.mk-anim-mail-line--short { width: 60%; }

.mk-anim-mail-btn {
    margin-top: 0.45rem;
    font-size: 0.55rem;
    font-weight: 700;
    color: #fff;
    background: var(--mk-primary);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    text-align: center;
    animation: mkBtnGlow 1.5s ease-in-out infinite 2s;
}

.mk-anim-comms-sent {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.55rem;
    font-weight: 700;
    color: #6366f1;
    opacity: 0;
    animation: mkSignListItem 8s ease forwards 2s;
}

.mk-anim-route--pro .mk-anim-map-badge,
.mk-anim-work--pro .mk-anim-card--active {
    animation-duration: 2s;
}

.mk-hero-demo-caption code {
    font-size: 0.68em;
    background: rgba(43, 95, 96, 0.08);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

/* Responsive — mobilde ölçek yerine akıcı genişlik (köşe kırpılmasını önler) */
@media (max-width: 991px) {
    .mk-hero-demo-grid {
        grid-template-columns: 1fr;
    }

    .mk-hero-demo-stage-wrap {
        order: -1;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        display: block;
        padding: 0.5rem 0 0.75rem;
    }

    .mk-hero-device--premium {
        transform: none;
    }

    .mk-hero-device--premium:hover {
        transform: none;
    }

    .mk-hero-device {
        width: 100%;
        max-width: 32.5rem;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
        transform: none;
        box-sizing: border-box;
    }

    .mk-hero-device-glow {
        inset: -10%;
        filter: blur(18px);
    }

    .mk-hero-device-screen {
        min-height: clamp(300px, 58vw, 380px);
    }

    .mk-anim-work-col {
        grid-template-columns: repeat(3, 1fr);
    }

    .mk-hero-demo-dynamic {
        min-height: 8.5rem;
    }
}

@media (max-width: 576px) {
    .mk-hero-tab span.mk-hero-tab-ico + *,
    .mk-hero-tab {
        font-size: 0.65rem;
        padding: 0.4rem 0.55rem;
    }

    .mk-hero-device-screen {
        min-height: clamp(280px, 64vw, 360px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mk-hero-copy-panel,
    .mk-hero-scene,
    .mk-hero-anim,
    .mk-anim-cursor,
    .mk-anim-route-line,
    .mk-anim-pin,
    .mk-anim-card--active,
    .mk-anim-canvas-drop,
    .mk-anim-defs-bar i {
        animation: none !important;
        transition: none !important;
    }

    .mk-hero-anim,
    .mk-anim-report-pdf,
    .mk-anim-dropped-sign,
    .mk-anim-cursor,
    .mk-hero-anim-cursor-ai,
    .mk-hero-anim-cursor-tpl,
    .mk-anim-ai-polished,
    .mk-anim-sign-script {
        opacity: 1 !important;
        stroke-dashoffset: 0 !important;
        fill: rgba(43, 95, 96, 0.12) !important;
    }

    .mk-anim-sign-pen {
        display: none;
    }

    .mk-anim-route-line {
        stroke-dashoffset: 0 !important;
    }

    .mk-anim-pin-wrap {
        opacity: 1 !important;
        transform: none !important;
    }

    .mk-hero-demo-progress {
        display: none;
    }
}
